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.

Author jaraco
Recipients jaraco, theller
Date 2009-02-02.20:35:58
SpamBayes Score 0.0003695133
Marked as misclassified No
Message-id <1233606959.98.0.153913247636.issue5119@psf.upfronthosting.co.za>
In-reply-to
Content
I see this in the documentation, which basically answers the question:

"windll does not try to select [wide or narrow functions] by magic, you
must access the version you need by specifying GetModuleHandleA or
GetModuleHandleW explicitely, and then call it with normal strings or
unicode strings respectively."

This behavior is inconsistent with how structures are handled, where
members are up-converted to unicode.  For example.

>>> class simple(Structure):
>>>   _fields_ = [('value', c_wchar_p)]
>>>
>>> simple('foo').value
u'foo'
History
Date User Action Args
2009-02-02 20:36:00jaracosetrecipients: + jaraco, theller
2009-02-02 20:35:59jaracosetmessageid: <1233606959.98.0.153913247636.issue5119@psf.upfronthosting.co.za>
2009-02-02 20:35:59jaracolinkissue5119 messages
2009-02-02 20:35:58jaracocreate