Issue 1323369: getwindowsversion() constants in sys module (original) (raw)
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.