@@ -36,7 +36,7 @@ the ``es``, ``es#``, ``et`` and ``et#`` formats.
3636
3737However, when a :ctype: `Py_buffer ` structure gets filled, the underlying
3838buffer is locked so that the caller can subsequently use the buffer even
39- inside a `` Py_BEGIN_ALLOW_THREADS ` ` block without the risk of mutable data
39+ inside a :ctype: ` Py_BEGIN_ALLOW_THREADS ` block without the risk of mutable data
4040being resized or destroyed. As a result, **you have to call **
4141:cfunc: `PyBuffer_Release ` after you have finished processing the data (or
4242in any early abort case).
@@ -48,9 +48,9 @@ Unless otherwise stated, buffers are not NUL-terminated.
4848 the length argument (int or :ctype: `Py_ssize_t `) is controlled by
4949 defining the macro :cmacro: `PY_SSIZE_T_CLEAN ` before including
5050 :file: `Python.h `. If the macro was defined, length is a
51- :ctype: `Py_ssize_t ` rather than an int. This behavior will change
51+ :ctype: `Py_ssize_t ` rather than an :ctype: ` int `. This behavior will change
5252 in a future Python version to only support :ctype: `Py_ssize_t ` and
53- drop int support. It is best to always define :cmacro: `PY_SSIZE_T_CLEAN `.
53+ drop :ctype: ` int ` support. It is best to always define :cmacro: `PY_SSIZE_T_CLEAN `.
5454
5555
5656``s `` (:class: `str `) [const char \* ]
@@ -492,11 +492,11 @@ Building values
492492 strings a tad more readable.
493493
494494 ``s `` (:class: `str ` or ``None ``) [char \* ]
495- Convert a null-terminated C string to a Python object using ``'utf-8' ``
495+ Convert a null-terminated C string to a Python :class: ` str ` object using ``'utf-8' ``
496496 encoding. If the C string pointer is *NULL *, ``None `` is used.
497497
498498 ``s# `` (:class: `str ` or ``None ``) [char \* , int]
499- Convert a C string and its length to a Python object using ``'utf-8' ``
499+ Convert a C string and its length to a Python :class: ` str ` object using ``'utf-8' ``
500500 encoding. If the C string pointer is *NULL *, the length is ignored and
501501 ``None `` is returned.
502502
0 commit comments