The Python Software Foundation today released version 2.6 of the popular language, a release that lays the groundwork for the language-changing Python 3.0 release.
"The major theme of Python 2.6 is preparing the migration path to Python 3.0, a major redesign of the language," wrote Andrew Kuchling, former director of the Python Software Foundation, in the "What's New in Python 2.6" guide.
Python 2.6 remains compatible with existing 2.x code while incorporating new features and syntax from 3.0, as well as adding compatibility functions into a future_builtins module.
New packages such as multi-processing and json modules have been added to the standard Python library, as well as bug fixing and other improvements.
In Python 3.0, the print statement becomes the print() function, in Python 2.6 it is possible to use the function by using a __future__ import.
from __future__ import print_function print('# of entries', len(dictionary), file=sys.stderr)
For full details of all the new features, visit Kuchling's "What's New in Python 2.6" guide.
Python 2.6 can be downloaded from the Python website.
Some would say that it is a long way from software engineering to journalism, others would correctly argue that it is a mere 10 metres according to the floor plan.During his first five years with CBS Interactive, Chris started his journalistic adventure in 2006 as the Editor of Builder AU after originally joining the company as a programmer.Leaving CBS Interactive in 2010 to follow his deep desire to study the snowdrifts and culinary delights of Canada, Chris based himself in Vancouver and paid for his new snowboarding and poutine cravings as a programmer for a lifestyle gaming startup.Chris returns to CBS in 2011 as the Editor of TechRepublic Australia determined to meld together his programming and journalistic tendencies once and for all.In his free time, Chris is often seen yelling at different operating systems for their own unique failures, avoiding the dreaded tech support calls from relatives, and conducting extensive studies of internets — he claims he once read an entire one.