Skip to content

Commit ecdd63f

Browse files
committed
python#10944: add c_bool to types table.
1 parent 41a99bc commit ecdd63f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/ctypes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ Fundamental data types
216216
+----------------------+------------------------------------------+----------------------------+
217217
| ctypes type | C type | Python type |
218218
+======================+==========================================+============================+
219+
| :class:`c_bool` | :c:type:`_Bool` | bool (1) |
220+
+----------------------+------------------------------------------+----------------------------+
219221
| :class:`c_char` | :c:type:`char` | 1-character bytes object |
220222
+----------------------+------------------------------------------+----------------------------+
221223
| :class:`c_wchar` | :c:type:`wchar_t` | 1-character string |
@@ -254,6 +256,9 @@ Fundamental data types
254256
| :class:`c_void_p` | :c:type:`void *` | int or ``None`` |
255257
+----------------------+------------------------------------------+----------------------------+
256258

259+
(1)
260+
The constructor accepts any object with a truth value.
261+
257262
All these types can be created by calling them with an optional initializer of
258263
the correct type and value::
259264

0 commit comments

Comments
 (0)