summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-02 20:25:14 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-02 20:25:14 (GMT)
commitfc29f27c162a236d2d879ab3fb803110628a0ccf (patch)
treecc68b3ee5ebf96d0e63161394c80a499f21ecae5 /Doc/c-api
parent511048673f8635b12f683eb9fc09f42c8ab871c7 (diff)
downloadcpython-fc29f27c162a236d2d879ab3fb803110628a0ccf.zip
cpython-fc29f27c162a236d2d879ab3fb803110628a0ccf.tar.gz
cpython-fc29f27c162a236d2d879ab3fb803110628a0ccf.tar.bz2
#4811: fix markup glitches (mostly remains of the conversion),
found by Gabriel Genellina.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/arg.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index 144a365..9d14d1c 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -46,12 +46,12 @@ variable(s) whose address should be passed.
:ctype:`Py_ssize_t` rather than an int.
``s*`` (string, Unicode, or any buffer compatible object) [Py_buffer \*]
- Similar to ``s#``, this code fills a Py_buffer structure provided by the caller.
- The buffer gets locked, so that the caller can subsequently use the buffer even
- inside a ``Py_BEGIN_ALLOW_THREADS`` block; the caller is responsible for calling
- ``PyBuffer_Release`` with the structure after it has processed the data.
+ Similar to ``s#``, this code fills a Py_buffer structure provided by the caller.
+ The buffer gets locked, so that the caller can subsequently use the buffer even
+ inside a ``Py_BEGIN_ALLOW_THREADS`` block; the caller is responsible for calling
+ ``PyBuffer_Release`` with the structure after it has processed the data.
- .. versionadded:: 2.6
+ .. versionadded:: 2.6
``z`` (string or ``None``) [const char \*]
Like ``s``, but the Python object may also be ``None``, in which case the C
@@ -63,7 +63,7 @@ variable(s) whose address should be passed.
``z*`` (string or ``None`` or any buffer compatible object) [Py_buffer*]
This is to ``s*`` as ``z`` is to ``s``.
- .. versionadded:: 2.6
+ .. versionadded:: 2.6
``u`` (Unicode object) [Py_UNICODE \*]
Convert a Python Unicode object to a C pointer to a NUL-terminated buffer of
@@ -261,6 +261,7 @@ variable(s) whose address should be passed.
``w*`` (read-write byte-oriented buffer) [Py_buffer \*]
This is to ``w`` what ``s*`` is to ``s``.
+
.. versionadded:: 2.6
``(items)`` (tuple) [*matching-items*]