FAQ - How do I declare that a CTypes function returns unsigned char?

p.lavarre at ieee.org p.lavarre at ieee.org
Wed Oct 25 18:56:13 EDT 2006


Now at http://pyfaq.infogami.com/suggest we have:

FAQ: How do I declare that a CTypes function returns unsigned char?

A: c_uchar = ctypes.c_ubyte

This irregularity actually is doc'ed, it's just pointlessly annoying.

Hope this helps (and of course I trust you'll dispute if I'm nuts),




More information about the Python-list mailing list