~ubuntu-branches/ubuntu/precise/python3.2/precise

« back to all changes in this revision

Viewing changes to Doc/library/ctypes.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-02-14 16:12:14 UTC
  • mfrom: (10.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110214161214-f5vwa226kebccmt9
Tags: 3.2~rc3-1
Python 3.2 release candidate 3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
+----------------------+------------------------------------------+----------------------------+
217
217
| ctypes type          | C type                                   | Python type                |
218
218
+======================+==========================================+============================+
 
219
| :class:`c_bool`      | :c:type:`_Bool`                          | bool (1)                   |
 
220
+----------------------+------------------------------------------+----------------------------+
219
221
| :class:`c_char`      | :c:type:`char`                           | 1-character bytes object   |
220
222
+----------------------+------------------------------------------+----------------------------+
221
223
| :class:`c_wchar`     | :c:type:`wchar_t`                        | 1-character string         |
254
256
| :class:`c_void_p`    | :c:type:`void *`                         | int or ``None``            |
255
257
+----------------------+------------------------------------------+----------------------------+
256
258
 
 
259
(1)
 
260
   The constructor accepts any object with a truth value.
 
261
 
257
262
All these types can be created by calling them with an optional initializer of
258
263
the correct type and value::
259
264