[Python-checkins] r77108 - python/trunk/Doc/library/ctypes.rst
georg.brandl
python-checkins at python.org
Tue Dec 29 11:34:34 CET 2009
Author: georg.brandl
Date: Tue Dec 29 11:34:34 2009
New Revision: 77108
Log:
#7569: clarification about c_char_p.
Modified:
python/trunk/Doc/library/ctypes.rst
Modified: python/trunk/Doc/library/ctypes.rst
==============================================================================
--- python/trunk/Doc/library/ctypes.rst (original)
+++ python/trunk/Doc/library/ctypes.rst Tue Dec 29 11:34:34 2009
@@ -2163,8 +2163,10 @@
.. class:: c_char_p
- Represents the C char \* datatype, which must be a pointer to a zero-terminated
- string. The constructor accepts an integer address, or a string.
+ Represents the C char \* datatype when it points to a zero-terminated
+ string. For a general character pointer that may also point to binary data,
+ ``POINTER(c_char)`` must be used. The constructor accepts an integer
+ address, or a string.
.. class:: c_double
More information about the Python-checkins
mailing list