[Patches] [ python-Patches-1620174 ] Improve platform.py usability on Windows

SourceForge.net noreply at sourceforge.net
Sun Dec 31 06:57:07 CET 2006


Patches item #1620174, was opened at 2006-12-21 22:49
Message generated for change (Comment added) made by infidel
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1620174&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Luke Dunstan (infidel)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improve platform.py usability on Windows

Initial Comment:
This patch modifies platform.py to remove most of the dependencies on pywin32, and use the standard ctypes and _winreg modules instead. It also adds support for Windows CE.


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

>Comment By: Luke Dunstan (infidel)
Date: 2006-12-31 13:57

Message:
Logged In: YES 
user_id=30442
Originator: YES

1. Yes this is intended for 2.6

2. The only difference between win32api.RegQueryValueEx and
_winreg.QueryValueEx seems to be that the latter returns Unicode strings. I
have adjusted the patch to be more compatible with the old behaviour.

3. I have updated the doc string in the new patch.

File Added: platform-wince-2.diff

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

Comment By: Jim Jewett (jimjjewett)
Date: 2006-12-31 08:13

Message:
Logged In: YES 
user_id=764593
Originator: NO


( win32api.RegQueryValueEx is _winreg.QueryValueEx ) ?

If not, it should wait for 2.6, and there should be an entry in what's
new.  (I suppose similar concerns exist for other return classes.)

The change to win32_ver only half-corrects the return type to the
four-tuple.  The meaning of release (even if it is just "release name")
should be specified in the text.


 def win32_ver(release='',version='',csd='',ptype=''):
 
     """ Get additional version information from the Windows Registry
-        and return a tuple (version,csd,ptype) referring to version
+        and return a tuple (release,version,csd,ptype) referring to
version
         number, CSD level and OS type (multi/single
         processor).



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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1620174&group_id=5470


More information about the Patches mailing list