[Baypiggies] Best practices for making code run on 2.6 and 3.x?
Paul Hoffman
paul.hoffman at gmail.com
Mon Jan 10 01:28:44 CET 2011
Greetings again. I have a program that I want to distribute that needs
to work on systems running Python 2.6 or 3.x. Unfortunately, some of
the modules have changed names. For example:
#!/usr/bin/python
import SocketServer
works fine if python is 2.6 and dies an early death if python is 3.x.
Is there any clean way to code for this?
More information about the Baypiggies
mailing list