]> granicus.if.org Git - python/commitdiff
#10944: add c_bool to types table.
authorGeorg Brandl <georg@python.org>
Wed, 19 Jan 2011 20:05:49 +0000 (20:05 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 19 Jan 2011 20:05:49 +0000 (20:05 +0000)
Doc/library/ctypes.rst

index f0065658d10c139f902edf6340a23d7f8e04c3a8..33d1f7e9cddc4741763594d857412246b2a94eb9 100644 (file)
@@ -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::