[issue16192] ctypes - documentation example

Chris Jerdonek report at bugs.python.org
Thu Oct 11 09:21:03 CEST 2012


Chris Jerdonek added the comment:

> Perhaps if some machines expect otherwise that should be documented, otherwise might we change them.

The very beginning of the ctypes documentation has documentation to that effect:

"Note: Some code samples reference the ctypes c_int type. This type is an alias for the c_long type on 32-bit systems. So, you should not be confused if c_long is printed if you would expect c_int — they are actually the same type."

http://docs.python.org/dev/library/ctypes.html#ctypes-tutorial

Does that address your suggestion?

----------
nosy: +chris.jerdonek
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16192>
_______________________________________


More information about the Python-bugs-list mailing list