2009/11/3 Charles Cazabon <charlesc-lists-python-...@pyropus.ca>: > "Martin v. Löwis" <mar...@v.loewis.de> wrote: > It's pretty easy to make Python source that works under 2.6 and 3.x. It's > basically impossible to make Python source that works under 2.4/2.5 and > 3.x.
Without using 2to3, yes. See http://code.google.com/p/python-incompatibility/ where I've attempted to document most 2.5/3.0 incompatibilities and explain how to get around them to run the same unmodified code under 2.6 and 3.0. (It's not complete, help appreciated, especially with the C-API part) > No. getmail v.4 runs fine on Python 2.3.4 through 2.6.x; getmail's code has > always been pretty forward-compatible. Then it's going to be dead easy to support both 2.x and 3.x by using 2to3. If you don't want to have separate packages youcan use distribute: http://packages.python.org/distribute/python3.html Also see my talk at PyCon: http://pycon.blip.tv/file/1949281/ -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com