Python 3.0 won't be compatible with earlier versions



Email    print   
October 8, 2008 —  Python developers will soon have a tough decision to make: Move to a new Python, or stay forever bound to version 2.5 or earlier. On the Sept. 30, Python 2.6 was released, and it included a multitude of new features and adjustments to help ease users into the dramatic shift that will come with Python 3.0.

Scheduled for release later this year, Python 3.0 will bring a complete break with the past, rendering old code incompatible. While version 2.6 will bridge many gaps and prepare users for the forthcoming shift, 3.0 code will never run on any Python of the 2.x variety, and only some 2.x code will work on version 3.0.

A.M. Kuchling, a developer at radio simulation company ASTi and a contributor to the Python project, wrote an extensive description of the changes in Python 2.6 and how they relate to the forthcoming 3.0 version. Many of the changes in Python 2.6, such as the improvements made to SSL, inclusion of JSON interchanges and the rewriting of the warnings module in C, aren't destructive to older Python applications. Elsewhere, however, Kuchling details the places where even Python 2.6 is incompatible with previous editions.

While Python 3.0 will bring in many new conventions and syntax forms, version 2.6 includes some of these features as bridges between old and new. Many of these are hand-holding mechanisms  to prevent problems when the major changes of version 3.0 arrive, such as the backporting of the new format () method, which was scheduled to arrive in version 3.0 but will now also be available in version 2.6.

Those changes are so deep as to affect even the humble Print statement. As of version 2.6, Print can be triggered as a function with brackets delineating what will be printed to the screen. Python 3.0 will only allow this use of Print, but version 2.6 includes facilities for automatically fixing older applications that may not use this form.

Local installations of Python will now support the designation of user-based library storage directories. In the past, Python has stored all such libraries and support files in a single directory, but with Python 2.6 and beyond, individual users can be given directories inside of the default storage tree.

Python also received a multiprocessing function, which can be used to spin up a fresh process, then tie the results back to the mainline with a message queue.

Numerous other features have been changed or modified within the language, and Kuchling's report on the matter is deeply detailed. It can be found online at docs.python.org/whatsnew/2.6.html.




Related Search Term(s): Python


Share this link: http://sdt.bz/32947
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
ActiveState prepares Perl, Python for platform project
Stackato will bring those languages to Cloud Foundry Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

Bloomberg opens its API
Bloomberg's APIs could lead to a future standard for accessing market data.
02/01/2012 04:41 PM EST

The case for piracy
In the aftermath of SOPA and PIPA, some copyright holders have begun to embrace piracy as inevitable...and even beneficial.
01/30/2012 02:39 PM EST

Tablet sales boom, but applications lag
The installed base of tablet computers and e-book readers is growing rapidly, but no killer app has yet emerged -- hint, hint.
01/28/2012 05:48 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb