avoiding long paths to interpreter

Erik Max Francis max at alcyone.com
Mon Jan 13 01:44:44 EST 2003


Robin Munn wrote:

> If you're dependent on a particular version of Python, then it makes
> the
> most sense to simply check sys.version_info as soon as possible, and
> exit gracefully with an appropriate error message, e.g.:
> 
>     import sys
> 
>     if sys.version_info < (2,2):    # Require at least Python 2.2

Neglecting you meant >= and not < here, it's worth pointing out that
sys.version_info itself only first made an appearance in version 2.0. 
Even sys.hexversion was only introduced in 1.5.2.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Nothing is so good it lasts eternally
\__/ Florence, _Chess_
    Max Pandaemonium / http://www.maxpandaemonium.com/
 A sampling of Max Pandameonium's music.




More information about the Python-list mailing list