A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-September/037979.html below:

[Python-Dev] New functionality in micro releases(was:Documenting branch policy)

[Python-Dev] New functionality in micro releases(was:Documenting branch policy) [Python-Dev] New functionality in micro releases(was:Documenting branch policy)Matthew F. Barnes mfb at lotusland.dyndns.org
Tue Sep 9 02:25:11 EDT 2003
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

More information about the Python-Dev mailing list

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