1 message in org.python.python-bugs-list[ python-Bugs-873005 ] platform modul...
FromSent OnAttachments
SourceForge.netMar 25, 2004 2:26 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-873005 ] platform module needs updateActions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 25, 2004 2:26:24 pm
List:org.python.python-bugs-list

Bugs item #873005, was opened at 2004-01-08 12:28 Message generated for change (Comment added) made by lemburg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=873005&group_id=5470

Category: Python Library Group: None

Status: Closed Resolution: Accepted

Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: M.-A. Lemburg (lemburg) Summary: platform module needs update

Initial Comment: 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.

----------------------------------------------------------------------

Comment By: M.-A. Lemburg (lemburg)

Date: 2004-03-25 20:26

Message: Logged In: YES user_id=38388

Checked in. Thanks, Thomas.

----------------------------------------------------------------------

Comment By: Thomas Heller (theller) Date: 2004-01-08 20:10

Message: 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

----------------------------------------------------------------------

Comment By: M.-A. Lemburg (lemburg) Date: 2004-01-08 12:41

Message: 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).

----------------------------------------------------------------------