Content deleted Content added
ClueBot NG (talk | contribs) m Reverting possible vandalism by 184.170.25.217 to version by HRoestBot. False positive? Report it. Thanks, ClueBot NG. (1403708) (Bot) |
→Features: 2.7 as well |
||
Line 70:
===Features===
Some of the major changes scheduled for Python 3.0 were:
* Changing <code>print</code> so that it is a built-in function, not a statement. This made it easier to change a module to use a different print function, as well as making the syntax more regular. In Python 2.6 and 2.7 this
* Moving <code>reduce</code> (but not <code>map</code> or <code>filter</code>) out of the built-in namespace and into functools (the rationale being that operations using ''reduce'' are expressed more clearly using an accumulation loop);<ref>[http://www.artima.com/weblogs/viewpost.jsp?thread=211200 Thread on Artima programmer blog]</ref>
* Adding support for optional function annotations that can be used for informal type declarations or other purposes;<ref>[http://www.python.org/dev/peps/pep-3107/ PEP 3197]</ref>
|