PDA

View Full Version : IS there any point of learning python 3.0?



Mr.popo
December 24th, 2007, 01:22 AM
Python 3.0 has just come out( i think ...) and i am currently learning 2.5. WIl everyone switch over to 3.0. Should i bother carrying on 2.5?

LaRoza
December 24th, 2007, 01:25 AM
Python 3.0 has just come out( i think ...) and i am currently learning 2.5. WIl everyone switch over to 3.0. Should i bother carrying on 2.5?

It won't be out until Auguest 2008.

Learn 2.5, it isn't much different.

Python 3000 is not backwards compatible, but you won't have to relearn another language. It will still be Python.

Mr.popo
December 24th, 2007, 01:28 AM
Alright thanks LaRoza :)

Mr.popo
December 24th, 2007, 01:30 AM
Just wondering, Was there a big difference between Python 2.4 and 2.5?

thanks

LaRoza
December 24th, 2007, 01:32 AM
Just wondering, Was there a big difference between Python 2.4 and 2.5?

thanks

No.

The next version is a big leap, and will not happen often. It is a "clean up" so to speak.

engla
December 24th, 2007, 01:48 AM
Actually there will be two versions released in the same timeframe -- version 2.6 and version 3.0. These two are friend releases.. 2.6 is a continuation of the old release series, with a few changes here and there, but will include addtions from 3.0 that don't conflict with 2.x rules and syntax. And it will feature a warnings mode, so it can tell you how to write your python 2.6 ("old python") code so it can be translated nonambiguiously to python 3.0. I actually quite like the scheme they have thought out for this with 2.6 and 3.0. Porting from 2.4 to 2.5 and then to 2.6 should be easy --perhaps no changes at all -- and then python 2.6 can be your compatibility guide for python 3.0.

But for most developers this is still in the future, even though there are already recommendations on how to adapt coding style.

The transition is even further away for users.

LaRoza
December 24th, 2007, 01:56 AM
Cool. I didn't know about 2.6. Thanks, that is a good idea on their part.

pmasiar
December 29th, 2007, 03:45 AM
What's New in Python 2.5:

http://docs.python.org/whatsnew/whatsnew25.html

sqlite3 and elementtree in core lib are my big winners :-)

In 2.5, Python added conditional expression, and they are little different than in C or other languages (but IMHO more readable: it is about the values, not condition, and "default" value is closer to where you vould expect it).