Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python 2.7 vs python 3.1

Some python 3 features and modules having been backported to python 2.7 what are the notable differences between python 3.1 and python 2.7?

like image 596
simha Avatar asked Jan 21 '11 06:01

simha


1 Answers

I think these resources might help you:

  • A introduction to Python "3000" from Guido van Rossum
  • Porting your code to Python 3
  • and of course the documentation of changes in Python 3.0

And as you said

Some python 3 features and modules having been backported to python 2.7

... I would invert that sentence and say only few packages yet have been ported from Python 2.x to 3.x. Great libraries like PyGTK still only work in Python 2. Migration can take a while in many projects so before you decide to use Python 3 you may rather think about writing your own projects in Python 2, while ensuring compatibility by testing with 2to3 regularly.

like image 113
AndiDog Avatar answered Oct 07 '22 21:10

AndiDog