[Python-porting] Python 2.4 v/s Python3.2
Vikas Choudhary
vikas.choudhary at qlogic.com
Thu Aug 9 16:29:41 CEST 2012
More information about the Python-porting mailing list
Thu Aug 9 16:29:41 CEST 2012
- Previous message: [Python-porting] Python 2.4 v/s Python3.2
- Next message: [Python-porting] Python 2.4 v/s Python3.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Are there any modules, those are specific to python 2.x and still not supported by python3.x -----Original Message----- From: Lennart Regebro [mailto:regebro at gmail.com] Sent: 09 August 2012 14:55 To: Vikas Choudhary Cc: python-porting at python.org Subject: Re: [Python-porting] Python 2.4 v/s Python3.2 On Thu, Aug 9, 2012 at 10:52 AM, Vikas Choudhary <vikas.choudhary at qlogic.com> wrote: > Can someone let me know advantage of python 3.2 over python 2.4 There are loads and loads of advantages, but many are quite small. I'd say the big ones are: * Bugfixes. 2.4 is really old. * The "with" statement * Ordered Dictionaries * argparse module * 0b integer syntax. * multiprocessing module * Class decorators * Conditional expressions * Sending values to generators * Dictionary views. * print is a function * strings are unicode * Things are just a little bit more consistent. Of course, all of these except the last three and a half ones are true for Python 2.7 as well. And if you want to migrate code to Python 3, then you should first migrate to 2.7 anyway. //Lennart This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
- Previous message: [Python-porting] Python 2.4 v/s Python3.2
- Next message: [Python-porting] Python 2.4 v/s Python3.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-porting mailing list