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: platform module needs update
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: lemburg Nosy List: lemburg, theller
Priority: normal Keywords:

Created on 2004-01-08 11:28 by theller, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
platform.diff theller, 2004-01-08 19:10 Patch for platform.py
Messages (4)
msg19581 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2004-01-08 11:28
The platform module doesn't know about windows XP.

It would be possible to simplify it (and get rid of the
win32all dependency) by using the _winreg module, and
the sys.getwindowsversion() function - although the
1.5.2 compatibility would suffer.

Documentation is missing completely.
msg19582 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2004-01-08 11:41
Logged In: YES 
user_id=38388

Patches are welcome :-)

I'd like to keep the 1.5.2 compatibility for 2.4. By the
time 2.5 gets developed, we can then move on to Python 2.1.

It should be possible to write the win32 code in a way that
only gets rid off the win32all dependency if the _winreg
module is available. I think  that would be a good compromise.

As for documentation: this is already written (see patch
#785752).
msg19583 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2004-01-08 19:10
Logged In: YES 
user_id=11105

To be honest, I have no use for this module.
But, to get you started, I attached a simple patch which at
least detects Windows Me, XP, and 2003 Server family.

The maj and min version numbers were taken from:
http://msdn.microsoft.com/library/en-us/sysinfo/base/osversioninfo_str.asp
msg19584 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2004-03-25 19:26
Logged In: YES 
user_id=38388

Checked in.
Thanks, Thomas.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39785
2004-01-08 11:28:21thellercreate