How to specify Python version in script?
no.email at please.post
Wed Nov 11 18:16:43 CET 2009
I have a script that must be run with Python 2.6.x. If one tries
to run it with, say, 2.5.x, *eventually* it runs into problems and
crashes. (The failure is quicker if one attempts to run it with
Is there some way to specify at the very beginning of the script
the acceptable range of Python versions?
P.S. I know that I can hardcode the path to a specific intpreter
in the #! line, but I'm trying to keep the code a bit more general
More information about the Python-list