Question

What problems can I have if I will use python 2.7 instead python 2.6 for my pylons/pyramid projects? Before I use python 2.6 on my ubuntu 10.04 but now I have ubuntu 11.04 on my laptop with python 2.7.

Was it helpful?

Solution

If you're using Ubuntu the package manager will fix most of the minor issues such as finding the packages you used to have in 2.6. But there are some Packages that isn't compliant with Python2.7.

Mainly Python2.7 is a backwards compatible version from 3.X, or at least Python 2.7 was an upgrade from 2.6 towards the 3.X syntax and all it's new functions while the translation to 3.X was made.

Here's some info:

Mainly Python2.7 should just give you more functions but can cause unexpected problems, Go ahead and upgrade it on a seperate machine, run your code, if it works, upgrade your real machine to Python2.7.

The problems that might occur are minor, you should be able to fix them within 1h.

OTHER TIPS

According to this post, Pyramid 1.2 (as is 1.1) is fully supported on Python 2.5.x, 2.6.x, and 2.7.x so you should be all set. From my own personal experience,I haven't run into any issues with Pyramid/Python2.7.

These days my Pyramid stack consists of:

  • python 2.7
  • khufu
  • sqlalchemy 0.7.x

and it works quite well.

Take a look at http://docs.python.org/dev/whatsnew/2.7.html You'll find what all you'll ever need to know.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top