History of Python: Difference between revisions

Content deleted Content added
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 couldcan be enabled by entering <code>from __future__ import print_function</code>.<ref>[http://www.python.org/dev/peps/pep-3105/ PEP 3105]</ref>
* 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>