Python 2.6 and 3.0 compatibility

If you will be writing any new programs in the Python programming language then check Lennart Regebro’s presentation[1] and slides[2] on their compatibility issues. It is interesting to see the amount of changes they have made to make the language more robust and correct. This does mean that programs written in Python 2.x , to some extent, will be incompatible with Python 3.x so keep it in mind when deciding on which one to pick.

Links Used:
[1] Lennart Regebro’s presentation – http://blip.tv/file/1949281

[2] Lennart Regebro’s slides – http://liwo.polsl.pl/pycon-pl2008/materia142y/python-3-compatibility.pdf

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Python 2.6 and 3.0 compatibility

  1. Amrita says:

    The major theme of Python 2.6 is preparing the migration path to Python 3.0, a major redesign of the language. Python 3.0 is a far-ranging redesign of Python that is not compatibility with the 2.x series. So the existing Python code will need some conversion in order to run on Python 3.0. So one can use the tool called 2to3 to convert the code from Python 2.x code to 3.x code. If one needs to support both 2.x and 3.0 then you have to maintain maintain the code as 2.x code, and convert it to 3.x code and test it before you make a new release Then make two separate releases, one for 2.x and one for 3.0.

Leave a Reply

Your email address will not be published. Required fields are marked *