@@ -50,7 +50,7 @@ Unless otherwise stated, buffers are not NUL-terminated.
5050
5151Some formats require a read-only :term: `bytes-like object `, and set a
5252pointer instead of a buffer structure. They work by checking that
53- the object's :c:member: `PyBufferProcs.bf_releasebuffer ` field is * NULL * ,
53+ the object's :c:member: `PyBufferProcs.bf_releasebuffer ` field is `` NULL `` ,
5454which disallows mutable objects such as :class: `bytearray `.
5555
5656.. note ::
@@ -99,15 +99,15 @@ which disallows mutable objects such as :class:`bytearray`.
9999
100100``z `` (:class: `str ` or ``None ``) [const char \* ]
101101 Like ``s ``, but the Python object may also be ``None ``, in which case the C
102- pointer is set to * NULL * .
102+ pointer is set to `` NULL `` .
103103
104104``z* `` (:class: `str `, :term: `bytes-like object ` or ``None ``) [Py_buffer]
105105 Like ``s* ``, but the Python object may also be ``None ``, in which case the
106- ``buf `` member of the :c:type: `Py_buffer ` structure is set to * NULL * .
106+ ``buf `` member of the :c:type: `Py_buffer ` structure is set to `` NULL `` .
107107
108108``z# `` (:class: `str `, read-only :term: `bytes-like object ` or ``None ``) [const char \* , int]
109109 Like ``s# ``, but the Python object may also be ``None ``, in which case the C
110- pointer is set to * NULL * .
110+ pointer is set to `` NULL `` .
111111
112112``y `` (read-only :term: `bytes-like object `) [const char \* ]
113113 This format converts a bytes-like object to a C pointer to a character
@@ -166,15 +166,15 @@ which disallows mutable objects such as :class:`bytearray`.
166166
167167``Z `` (:class: `str ` or ``None ``) [const Py_UNICODE \* ]
168168 Like ``u ``, but the Python object may also be ``None ``, in which case the
169- :c:type: `Py_UNICODE ` pointer is set to * NULL * .
169+ :c:type: `Py_UNICODE ` pointer is set to `` NULL `` .
170170
171171 .. deprecated-removed :: 3.3 4.0
172172 Part of the old-style :c:type: `Py_UNICODE ` API; please migrate to using
173173 :c:func: `PyUnicode_AsWideCharString `.
174174
175175``Z# `` (:class: `str ` or ``None ``) [const Py_UNICODE \* , int]
176176 Like ``u# ``, but the Python object may also be ``None ``, in which case the
177- :c:type: `Py_UNICODE ` pointer is set to * NULL * .
177+ :c:type: `Py_UNICODE ` pointer is set to `` NULL `` .
178178
179179 .. deprecated-removed :: 3.3 4.0
180180 Part of the old-style :c:type: `Py_UNICODE ` API; please migrate to using
@@ -197,7 +197,7 @@ which disallows mutable objects such as :class:`bytearray`.
197197
198198 This format requires two arguments. The first is only used as input, and
199199 must be a :c:type: `const char\* ` which points to the name of an encoding as a
200- NUL-terminated string, or * NULL * , in which case ``'utf-8' `` encoding is used.
200+ NUL-terminated string, or `` NULL `` , in which case ``'utf-8' `` encoding is used.
201201 An exception is raised if the named encoding is not known to Python. The
202202 second argument must be a :c:type: `char\*\* `; the value of the pointer it
203203 references will be set to a buffer with the contents of the argument text.
@@ -220,7 +220,7 @@ which disallows mutable objects such as :class:`bytearray`.
220220
221221 It requires three arguments. The first is only used as input, and must be a
222222 :c:type: `const char\* ` which points to the name of an encoding as a
223- NUL-terminated string, or * NULL * , in which case ``'utf-8' `` encoding is used.
223+ NUL-terminated string, or `` NULL `` , in which case ``'utf-8' `` encoding is used.
224224 An exception is raised if the named encoding is not known to Python. The
225225 second argument must be a :c:type: `char\*\* `; the value of the pointer it
226226 references will be set to a buffer with the contents of the argument text.
@@ -230,12 +230,12 @@ which disallows mutable objects such as :class:`bytearray`.
230230
231231 There are two modes of operation:
232232
233- If *\* buffer * points a * NULL * pointer, the function will allocate a buffer of
233+ If *\* buffer * points a `` NULL `` pointer, the function will allocate a buffer of
234234 the needed size, copy the encoded data into this buffer and set *\* buffer * to
235235 reference the newly allocated storage. The caller is responsible for calling
236236 :c:func: `PyMem_Free ` to free the allocated buffer after usage.
237237
238- If *\* buffer * points to a non-* NULL * pointer (an already allocated buffer),
238+ If *\* buffer * points to a non-`` NULL `` pointer (an already allocated buffer),
239239 :c:func: `PyArg_ParseTuple ` will use this location as the buffer and interpret the
240240 initial value of *\* buffer_length * as the buffer size. It will then copy the
241241 encoded data into the buffer and NUL-terminate it. If the buffer is not large
@@ -317,7 +317,7 @@ Other objects
317317``O `` (object) [PyObject \* ]
318318 Store a Python object (without any conversion) in a C object pointer. The C
319319 program thus receives the actual object that was passed. The object's reference
320- count is not increased. The pointer stored is not * NULL * .
320+ count is not increased. The pointer stored is not `` NULL `` .
321321
322322``O! `` (object) [*typeobject *, PyObject \* ]
323323 Store a Python object in a C object pointer. This is similar to ``O ``, but
@@ -437,7 +437,7 @@ API Functions
437437
438438 Parse the parameters of a function that takes both positional and keyword
439439 parameters into local variables. The *keywords * argument is a
440- * NULL * -terminated array of keyword parameter names. Empty names denote
440+ `` NULL `` -terminated array of keyword parameter names. Empty names denote
441441 :ref: `positional-only parameters <positional-only_parameter >`.
442442 Returns true on success; on failure, it returns false and raises the
443443 appropriate exception.
@@ -520,8 +520,8 @@ Building values
520520
521521 Create a new value based on a format string similar to those accepted by the
522522 :c:func: `PyArg_Parse\* ` family of functions and a sequence of values. Returns
523- the value or * NULL * in the case of an error; an exception will be raised if
524- * NULL * is returned.
523+ the value or `` NULL `` in the case of an error; an exception will be raised if
524+ `` NULL `` is returned.
525525
526526 :c:func: `Py_BuildValue ` does not always build a tuple. It builds a tuple only if
527527 its format string contains two or more format units. If the format string is
@@ -547,20 +547,20 @@ Building values
547547
548548 ``s`` (:class: `str ` or ``None ``) [const char \*]
549549 Convert a null-terminated C string to a Python :class:`str` object using ``'utf-8'``
550- encoding. If the C string pointer is * NULL* , ``None`` is used.
550+ encoding. If the C string pointer is `` NULL`` , ``None`` is used.
551551
552552 ``s#`` (:class:`str` or ``None``) [const char \*, int ]
553553 Convert a C string and its length to a Python :class:`str` object using ``' utf-8' ``
554- encoding. If the C string pointer is * NULL * , the length is ignored and
554+ encoding. If the C string pointer is `` NULL `` , the length is ignored and
555555 ``None`` is returned.
556556
557557 ``y `` (:class: `bytes `) [const char \*]
558558 This converts a C string to a Python :class:`bytes` object. If the C
559- string pointer is * NULL* , ``None`` is returned.
559+ string pointer is `` NULL`` , ``None`` is returned.
560560
561561 ``y#`` (:class:`bytes`) [const char \*, int ]
562562 This converts a C string and its lengths to a Python object. If the C
563- string pointer is * NULL * , ``None`` is returned.
563+ string pointer is `` NULL `` , ``None`` is returned.
564564
565565 ``z `` (:class: `str ` or ``None ``) [const char \*]
566566 Same as ``s``.
@@ -570,12 +570,12 @@ Building values
570570
571571 ``u `` (:class: `str `) [const wchar_t \*]
572572 Convert a null-terminated :c:type:`wchar_t` buffer of Unicode (UTF-16 or UCS-4)
573- data to a Python Unicode object. If the Unicode buffer pointer is * NULL* ,
573+ data to a Python Unicode object. If the Unicode buffer pointer is `` NULL`` ,
574574 ``None`` is returned.
575575
576576 ``u#`` (:class:`str`) [const wchar_t \*, int ]
577577 Convert a Unicode (UTF-16 or UCS-4) data buffer and its length to a Python
578- Unicode object. If the Unicode buffer pointer is * NULL* , the length is ignored
578+ Unicode object. If the Unicode buffer pointer is `` NULL`` , the length is ignored
579579 and ``None`` is returned.
580580
581581 ``U`` (:class: `str ` or ``None ``) [const char \*]
@@ -636,9 +636,9 @@ Building values
636636
637637 ``O`` (object) [PyObject \*]
638638 Pass a Python object untouched (except for its reference count, which is
639- incremented by one). If the object passed in is a * NULL* pointer, it is assumed
639+ incremented by one). If the object passed in is a `` NULL`` pointer, it is assumed
640640 that this was caused because the call producing the argument found an error and
641- set an exception. Therefore, :c:func:`Py_BuildValue` will return * NULL* but won't
641+ set an exception. Therefore, :c:func:`Py_BuildValue` will return `` NULL`` but won't
642642 raise an exception. If no exception has been raised yet, :exc:`SystemError` is
643643 set.
644644
@@ -653,7 +653,7 @@ Building values
653653 ``O&`` (object) [*converter*, *anything*]
654654 Convert *anything* to a Python object through a *converter* function. The
655655 function is called with *anything* (which should be compatible with :c:type: `void
656- \* `) as its argument and should return a "new" Python object, or * NULL* if an
656+ \* `) as its argument and should return a "new" Python object, or `` NULL`` if an
657657 error occurred.
658658
659659 ``(items)`` (:class: `tuple `) [*matching-items*]
@@ -668,7 +668,7 @@ Building values
668668 respectively.
669669
670670 If there is an error in the format string, the :exc: `SystemError ` exception is
671- set and * NULL * returned.
671+ set and `` NULL `` returned.
672672
673673.. c :function :: PyObject* Py_VaBuildValue (const char *format, va_list vargs)
674674
0 commit comments