Skip to content

Commit

Permalink
docs/ffi: Clarifications/typo fixes for type codes.
Browse files Browse the repository at this point in the history
Change-Id: Ie1f292878a4819f27634c2c9efa9083c36c3c0e6
  • Loading branch information
pfalcon committed Jul 5, 2019
1 parent e0bef04 commit c706321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/library/ffi.rst
Expand Up @@ -99,11 +99,11 @@ codes, below only differences are described:
* ``p`` - void*, pointer to writable memory. As return type, will produce
an integer (address). As an argument, NULL pointer can be represented
by ``None``.
* ``P`` - const void*, pointer to read-only memory. As return type, will
produce an integer (address).
* ``P`` - const void*, pointer to read-only memory. Otherwise, the same
as above.
* ``s`` - As argument type, the same as ``P``. When used as return type,
it's assumed to be a pointer to zero-terminated string, copy of that
string is made and return as Python `str` object. NULL pointer is returned
string is made and returned as Python `str` object. NULL pointer is returned
as ``None``.
* ``S`` - As above, but `bytes` object returned instead.
* ``O`` - Arbitrary Python object. Passed by internal representation
Expand Down

0 comments on commit c706321

Please sign in to comment.