py3k concerns. An example

Stefan Behnel stefan_ml at
Tue Apr 22 08:59:40 CEST 2008

Gabriel Genellina wrote:
>> Has the standard library changed that much?  I thought was it mainly the
>> deletion of old seldom used modules that happens in new releases anyways.
> *and* renaming of old module names that don't follow PEP8, and merging
> others into packages for better structure.
> That's another point where using the 2to3 tool is necesary -it takes
> care of such changes- unless one wants to maintain two branches.

conditional imports were never a problem in Python. Once things are in their
final place, you can add a try-except and import from two different places -
unless (I assume) you want to use 2to3, which might even break this approach.


More information about the Python-list mailing list