Kaydet (Commit) ecdd63f5 authored tarafından Georg Brandl's avatar Georg Brandl

#10944: add c_bool to types table.

üst 41a99bc2
...@@ -216,6 +216,8 @@ Fundamental data types ...@@ -216,6 +216,8 @@ Fundamental data types
+----------------------+------------------------------------------+----------------------------+ +----------------------+------------------------------------------+----------------------------+
| ctypes type | C type | Python type | | 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_char` | :c:type:`char` | 1-character bytes object |
+----------------------+------------------------------------------+----------------------------+ +----------------------+------------------------------------------+----------------------------+
| :class:`c_wchar` | :c:type:`wchar_t` | 1-character string | | :class:`c_wchar` | :c:type:`wchar_t` | 1-character string |
...@@ -254,6 +256,9 @@ Fundamental data types ...@@ -254,6 +256,9 @@ Fundamental data types
| :class:`c_void_p` | :c:type:`void *` | int or ``None`` | | :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 All these types can be created by calling them with an optional initializer of
the correct type and value:: the correct type and value::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment