python 2.7 vs python 3.1
Asked Answered
A

2

13

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?

Audry answered 21/1, 2011 at 6:55 Comment(2)
docs.python.org/py3k/whatsnew/index.htmlSarcoid
Try using search, also. For example https://mcmap.net/q/907913/-take-up-python-3-x-or-2-x-closed, #171421Moynahan
T
9

I think these resources might help you:

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.

Transcaucasia answered 21/1, 2011 at 7:5 Comment(0)
S
0

If you want to use any of the python 3 function in python 2.7 then you can import future module at the beginning and then you can use it in your code.

Shaer answered 16/6, 2016 at 19:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.