STINNER Victor <vstin...@python.org> added the comment:

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>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38398>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to