The Python Oracle

Which version of Python should be used?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles

--

Chapters
00:00 Question
00:29 Accepted answer (Score 3)
00:59 Answer 2 (Score 2)
01:44 Answer 3 (Score 1)
03:48 Answer 4 (Score 1)
04:31 Thank you

--

Full question
https://stackoverflow.com/questions/2751...

Answer 2 links:
[Core Python Programming]: http://corepython.com
[one that I gave a PyCon]: http://us.pycon.org/2010/conference/sche...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python

#avk47



ACCEPTED ANSWER

Score 3


A lot of 3rd party Python modules still require Python 2.x (numpy, scipy for example). If you will use any of those, or if you don't yet know what modules you need and want to keep your options open then stick with Python 2.x for now.

If you know that all the modules you need work with Python 3.x then go with that.




ANSWER 2

Score 2


for a web project, chose the python version that is supported by your hosting provider.

if you are lucky to have a dedicated server, then chose whatever version is best supported by the framework you chose. python 3 is still not supported by the major web framework, so python 2.6 seems the best choice.

if your project is hosted on a shared host, you will have to stick with the python version installed on the host (personally, i am stuck with python 2.4.4, hoping my hosting provider will upgrade to 2.5 or 2.6, which will not come anytime soon)




ANSWER 3

Score 1


I'd recommend Python 2.6 because it has some features of Python 3.x, but it still retains the same functionality found in Python 2.5. While some might argue that Python 3.x is better (quite possibly because of the immense amount of reorganisation and the fact that all strings are Unicode by default), most Python code in use right now is still for Python 2.x. I'd say stick with Python 2.6 until you need Python 3.x. :)




ANSWER 4

Score 0


I use 2.5 for Google App Engine projects and 2.6 for my Django projects.