|
|
|
They should use the new sys.subversion
attribute:
>>> import sys
>>> sys.subversion
('CPython', 'tags/r25', '51908')
The official documentation has more details.
Ziga Seilnacht |
06/10/10 - 11:36 pm | #
|
|
cool - good idea.
Fuzzyman |
Homepage |
06/10/11 - 12:44 am | #
|
|
"platform" module could be used for this, and there's a patch on CPython tracker: http://www.python.org/sf/1563842
Seo Sanghyeon |
06/10/11 - 2:18 am | #
|
|
To check for features in Python, check for the actual features. Only use version checks to work around bugs, or if checking for the features in the usual way might have unwanted side effects (a general "this application hasn't been tested on versions < 2.4" check would fall into the "potentially dangerous" category).
And sys.subversion shouldn't be used at all, unless you're a CPython developer and are working on repository-related tools or tests.
Fredrik |
Homepage |
06/10/11 - 7:43 am | #
|
|
|
Commenting by HaloScan
|