Message98197
I always find myself wishing sys.getwindowsversion() utilized the named tuple concept, so here it is against trunk. sys.version_info was also changed in this manner for 2.7.
Because it is a PyStructSeq/named tuple, it is still accessible like a regular old tuple, but can now be accessed by named attributes.
One thing I don't like is that this is a function, unlike sys.version_info. I think something like sys.windows_version would be better...is there sense in making that an additional API and starting to phase out the getwindowsversion function in py3k?
The patch includes doc and test changes. |
|
Date |
User |
Action |
Args |
2010-01-23 19:57:12 | brian.curtin | set | recipients:
+ brian.curtin |
2010-01-23 19:57:12 | brian.curtin | set | messageid: <1264276632.05.0.210165677499.issue7766@psf.upfronthosting.co.za> |
2010-01-23 19:57:10 | brian.curtin | link | issue7766 messages |
2010-01-23 19:57:10 | brian.curtin | create | |
|