[python-win32] win32dph.EnumObjectItems problem
xeoicq at netscape.net
Wed Apr 6 09:16:08 CEST 2005
I have a problem using win32pdh with Python22.
The call of win32pdh.EnumObjectItems changes the
decimal point from . to , on my system.
I think it could be a problem with the language setting
So I run in trouble with unpickle of float objects.
Is there a soulution or workaround?
The problem occurs under german language setting
For german EnumObjectItems neede 'Prozess' insted of 'Process'
pickled = pickle.dumps(to_pickle)
print "%s -> %s"%(to_pickle, pickled)
float_obj = 1.2345
str_float_obj_before = str(float_obj)
#the trouble begins:
#this commands changes the decimal point from . to , (german language
#so the unpickle didn't work for pickle done before the calls
Process="Prozess" #German Process="Process" #English
junk, processes =
str_float_obj_after = str(float_obj)
print "the string representation of float changed from %s to
#this is ok
#error due to comma(,) insted of point (.)
More information about the Python-win32