Fred L. Drake, Jr. said: > Comparison with sys.version_info would be trivial, and seems > sufficient: > > if sys.version_info < (2,2,2): > print "Get a newer version of Python!" > else: > main() FWIW - I often use something close to this near the top of my own modules (realizing that it gets skipped when the -O option is provided): assert sys.version_info >= (2,2,2), 'requires Python 2.2.2 or better' Matthew Barnes
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4