This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: getwindowsversion() constants in sys module
Type: Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: anadelonbrin, georg.brandl
Priority: normal Keywords:

Created on 2005-10-10 23:44 by anadelonbrin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg26551 - (view) Author: Tony Meyer (anadelonbrin) Date: 2005-10-10 23:44
In the documentation for the sys.getwindowsversion()
function, it says that the 'platform' value may be one
of four constants (specifying them by name).

However, these constants are not in the sys module
(they are in win32con from pywin32).

It would be better if either the documentation said
that the constants were available in win32con if
pywin32 is installed, or if the constants were added to
the sys module.

I personally think the latter is better since it's a
single line of code, and makes the getwindowsversion()
function more useful, but I'm not sure whether people
will want to clutter the sys module with four constants.

I'm happy to provide a patch for either behaviour, if
an appropriate developer will choose one.
msg26552 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-20 12:15
Logged In: YES 
user_id=849994

I added the numeric values to the docs in rev. 42516, 42517.
msg26553 - (view) Author: Tony Meyer (anadelonbrin) Date: 2006-03-02 00:39
Logged In: YES 
user_id=552329

This is certainly an improvement, but IMO it would be good
to also explain that these constants are in win32con (if
they aren't to be provided in the core).  It's better to
have code that refers to win32con than have everyone
defining these constants themselves.
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42465
2005-10-10 23:44:27anadelonbrincreate