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 vstinner
Recipients benjamin.peterson, pyscripter, vstinner, zach.ware
Date 2019-10-07.16:31:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570465892.15.0.320187666123.issue38398@roundup.psfhosted.org>
In-reply-to
Content
ctypes.pythonapi is kind of magic. I'm not sure if hasattr() is supposed to work on it. But that works for me:

$ python2
Python 2.7.16 (default, Apr 30 2019, 15:54:43) 
>>> import ctypes
>>> ctypes.pythonapi.PyUnicodeUCS4_FromWideChar
<_FuncPtr object at 0x7f1b9c155ef0>
History
Date User Action Args
2019-10-07 16:31:32vstinnersetrecipients: + vstinner, pyscripter, benjamin.peterson, zach.ware
2019-10-07 16:31:32vstinnersetmessageid: <1570465892.15.0.320187666123.issue38398@roundup.psfhosted.org>
2019-10-07 16:31:32vstinnerlinkissue38398 messages
2019-10-07 16:31:32vstinnercreate