[issue7766] sys.getwindowsversion as PyStructSequence
Eric Smith
report at bugs.python.org
Tue Jan 26 08:58:55 CET 2010
Eric Smith <eric at trueblade.com> added the comment:
The more I think about this, the more concerned I am about changing the number of elements in the tuple. That's the change that broke platform.py. Maybe we should add a parameter named something like "level", defaulting to 0.
0 = existing behavior, but with named tuple
1 = return named 9-tuple OSVERSIONINFOEX values
other values: reserved for future use
Or maybe we should make it a bool instead, and not worry about future expansion.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7766>
_______________________________________
More information about the Python-bugs-list
mailing list