31 Aug
2000
31 Aug
'00
10:48 a.m.
import distutils if distutils.version_info < (0, 9): bad_distutils_version() else: setup(...)
The definition of sys.version_info guarantees that the value monotonically increases with each new release so long as we don't change the numbering scheme, and comparisons against only the interesting prefix (as above) work reasonably.
-Fred
And THAT works? comparison of tuples is lexographic? Really? This sig is full of odd things. Hidden Secrets of Python -- by Fred L. Drake, Jr. At a newstand near you. Just imagine the wealth and fame.