graceful version detection?

Ben Collins-Sussman sussman at collab.net
Tue Jun 19 13:05:14 EDT 2001


Paul Prescod wrote:


> try:
>     import main
> except SyntaxError:
>     print "This program requires Python 2.0"


Thanks, I'll try this solution.  Now I just need to hunt down a 1.5 
interpreter...




More information about the Python-list mailing list