From: Georg Brandl Date: Wed, 19 Jan 2011 20:05:49 +0000 (+0000) Subject: #10944: add c_bool to types table. X-Git-Tag: v3.2rc2~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecdd63f56c7d2e890a5182f6d47aa29e4ec95022;p=python #10944: add c_bool to types table. --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index f0065658d1..33d1f7e9cd 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -216,6 +216,8 @@ Fundamental data types +----------------------+------------------------------------------+----------------------------+ | ctypes type | C type | Python type | +======================+==========================================+============================+ +| :class:`c_bool` | :c:type:`_Bool` | bool (1) | ++----------------------+------------------------------------------+----------------------------+ | :class:`c_char` | :c:type:`char` | 1-character bytes object | +----------------------+------------------------------------------+----------------------------+ | :class:`c_wchar` | :c:type:`wchar_t` | 1-character string | @@ -254,6 +256,9 @@ Fundamental data types | :class:`c_void_p` | :c:type:`void *` | int or ``None`` | +----------------------+------------------------------------------+----------------------------+ +(1) + The constructor accepts any object with a truth value. + All these types can be created by calling them with an optional initializer of the correct type and value::