| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent da6ce58 commit 25fc088
55 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,7 @@ Unless otherwise stated, buffers are not NUL-terminated. | |||
| 50 | 50 | ||
| 51 | 51 | Some formats require a read-only :term:`bytes-like object`, and set a | |
| 52 | 52 | pointer 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``, | ||
| 54 | 54 | which disallows mutable objects such as :class:`bytearray`. | |
| 55 | 55 | ||
| 56 | 56 | .. note:: | |
@@ -99,15 +99,15 @@ which disallows mutable objects such as :class:`bytearray`. | |||
| 99 | 99 | ||
| 100 | 100 | ``z`` (:class:`str` or ``None``) [const char \*] | |
| 101 | 101 | 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``. | ||
| 103 | 103 | ||
| 104 | 104 | ``z*`` (:class:`str`, :term:`bytes-like object` or ``None``) [Py_buffer] | |
| 105 | 105 | 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``. | ||
| 107 | 107 | ||
| 108 | 108 | ``z#`` (:class:`str`, read-only :term:`bytes-like object` or ``None``) [const char \*, int] | |
| 109 | 109 | 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``. | ||
| 111 | 111 | ||
| 112 | 112 | ``y`` (read-only :term:`bytes-like object`) [const char \*] | |
| 113 | 113 | 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`. | |||
| 166 | 166 | ||
| 167 | 167 | ``Z`` (:class:`str` or ``None``) [const Py_UNICODE \*] | |
| 168 | 168 | 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``. | ||
| 170 | 170 | ||
| 171 | 171 | .. deprecated-removed:: 3.3 4.0 | |
| 172 | 172 | Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using | |
| 173 | 173 | :c:func:`PyUnicode_AsWideCharString`. | |
| 174 | 174 | ||
| 175 | 175 | ``Z#`` (:class:`str` or ``None``) [const Py_UNICODE \*, int] | |
| 176 | 176 | 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``. | ||
| 178 | 178 | ||
| 179 | 179 | .. deprecated-removed:: 3.3 4.0 | |
| 180 | 180 | 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`. | |||
| 197 | 197 | ||
| 198 | 198 | This format requires two arguments. The first is only used as input, and | |
| 199 | 199 | 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. | ||
| 201 | 201 | An exception is raised if the named encoding is not known to Python. The | |
| 202 | 202 | second argument must be a :c:type:`char\*\*`; the value of the pointer it | |
| 203 | 203 | 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`. | |||
| 220 | 220 | ||
| 221 | 221 | It requires three arguments. The first is only used as input, and must be a | |
| 222 | 222 | :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. | ||
| 224 | 224 | An exception is raised if the named encoding is not known to Python. The | |
| 225 | 225 | second argument must be a :c:type:`char\*\*`; the value of the pointer it | |
| 226 | 226 | 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`. | |||
| 230 | 230 | ||
| 231 | 231 | There are two modes of operation: | |
| 232 | 232 | ||
| 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 | ||
| 234 | 234 | the needed size, copy the encoded data into this buffer and set *\*buffer* to | |
| 235 | 235 | reference the newly allocated storage. The caller is responsible for calling | |
| 236 | 236 | :c:func:`PyMem_Free` to free the allocated buffer after usage. | |
| 237 | 237 | ||
| 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), | ||
| 239 | 239 | :c:func:`PyArg_ParseTuple` will use this location as the buffer and interpret the | |
| 240 | 240 | initial value of *\*buffer_length* as the buffer size. It will then copy the | |
| 241 | 241 | encoded data into the buffer and NUL-terminate it. If the buffer is not large | |
@@ -317,7 +317,7 @@ Other objects | |||
| 317 | 317 | ``O`` (object) [PyObject \*] | |
| 318 | 318 | Store a Python object (without any conversion) in a C object pointer. The C | |
| 319 | 319 | 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``. | ||
| 321 | 321 | ||
| 322 | 322 | ``O!`` (object) [*typeobject*, PyObject \*] | |
| 323 | 323 | Store a Python object in a C object pointer. This is similar to ``O``, but | |
@@ -437,7 +437,7 @@ API Functions | |||
| 437 | 437 | ||
| 438 | 438 | Parse the parameters of a function that takes both positional and keyword | |
| 439 | 439 | 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 | ||
| 441 | 441 | :ref:`positional-only parameters <positional-only_parameter>`. | |
| 442 | 442 | Returns true on success; on failure, it returns false and raises the | |
| 443 | 443 | appropriate exception. | |
@@ -520,8 +520,8 @@ Building values | |||
| 520 | 520 | ||
| 521 | 521 | Create a new value based on a format string similar to those accepted by the | |
| 522 | 522 | :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. | ||
| 525 | 525 | ||
| 526 | 526 | :c:func:`Py_BuildValue` does not always build a tuple. It builds a tuple only if | |
| 527 | 527 | its format string contains two or more format units. If the format string is | |
@@ -547,20 +547,20 @@ Building values | |||
| 547 | 547 | ||
| 548 | 548 | ``s`` (:class:`str` or ``None``) [const char \*] | |
| 549 | 549 | 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. | ||
| 551 | 551 | ||
| 552 | 552 | ``s#`` (:class:`str` or ``None``) [const char \*, int] | |
| 553 | 553 | 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 | ||
| 555 | 555 | ``None`` is returned. | |
| 556 | 556 | ||
| 557 | 557 | ``y`` (:class:`bytes`) [const char \*] | |
| 558 | 558 | 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. | ||
| 560 | 560 | ||
| 561 | 561 | ``y#`` (:class:`bytes`) [const char \*, int] | |
| 562 | 562 | 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. | ||
| 564 | 564 | ||
| 565 | 565 | ``z`` (:class:`str` or ``None``) [const char \*] | |
| 566 | 566 | Same as ``s``. | |
@@ -570,12 +570,12 @@ Building values | |||
| 570 | 570 | ||
| 571 | 571 | ``u`` (:class:`str`) [const wchar_t \*] | |
| 572 | 572 | 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``, | ||
| 574 | 574 | ``None`` is returned. | |
| 575 | 575 | ||
| 576 | 576 | ``u#`` (:class:`str`) [const wchar_t \*, int] | |
| 577 | 577 | 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 | ||
| 579 | 579 | and ``None`` is returned. | |
| 580 | 580 | ||
| 581 | 581 | ``U`` (:class:`str` or ``None``) [const char \*] | |
@@ -636,9 +636,9 @@ Building values | |||
| 636 | 636 | ||
| 637 | 637 | ``O`` (object) [PyObject \*] | |
| 638 | 638 | 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 | ||
| 640 | 640 | 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 | ||
| 642 | 642 | raise an exception. If no exception has been raised yet, :exc:`SystemError` is | |
| 643 | 643 | set. | |
| 644 | 644 | ||
@@ -653,7 +653,7 @@ Building values | |||
| 653 | 653 | ``O&`` (object) [*converter*, *anything*] | |
| 654 | 654 | Convert *anything* to a Python object through a *converter* function. The | |
| 655 | 655 | 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 | ||
| 657 | 657 | error occurred. | |
| 658 | 658 | ||
| 659 | 659 | ``(items)`` (:class:`tuple`) [*matching-items*] | |
@@ -668,7 +668,7 @@ Building values | |||
| 668 | 668 | respectively. | |
| 669 | 669 | ||
| 670 | 670 | If there is an error in the format string, the :exc:`SystemError` exception is | |
| 671 | - set and *NULL* returned. | ||
| 671 | + set and ``NULL`` returned. | ||
| 672 | 672 | ||
| 673 | 673 | .. c:function:: PyObject* Py_VaBuildValue(const char *format, va_list vargs) | |
| 674 | 674 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,13 +102,13 @@ a buffer, see :c:func:`PyObject_GetBuffer`. | |||
| 102 | 102 | .. c:member:: void \*obj | |
| 103 | 103 | ||
| 104 | 104 | A new reference to the exporting object. The reference is owned by | |
| 105 | - the consumer and automatically decremented and set to *NULL* by | ||
| 105 | + the consumer and automatically decremented and set to ``NULL`` by | ||
| 106 | 106 | :c:func:`PyBuffer_Release`. The field is the equivalent of the return | |
| 107 | 107 | value of any standard C-API function. | |
| 108 | 108 | ||
| 109 | 109 | As a special case, for *temporary* buffers that are wrapped by | |
| 110 | 110 | :c:func:`PyMemoryView_FromBuffer` or :c:func:`PyBuffer_FillInfo` | |
| 111 | - this field is *NULL*. In general, exporting objects MUST NOT | ||
| 111 | + this field is ``NULL``. In general, exporting objects MUST NOT | ||
| 112 | 112 | use this scheme. | |
| 113 | 113 | ||
| 114 | 114 | .. c:member:: Py_ssize_t len | |
@@ -134,21 +134,21 @@ a buffer, see :c:func:`PyObject_GetBuffer`. | |||
| 134 | 134 | ||
| 135 | 135 | Important exception: If a consumer requests a buffer without the | |
| 136 | 136 | :c:macro:`PyBUF_FORMAT` flag, :c:member:`~Py_buffer.format` will | |
| 137 | - be set to *NULL*, but :c:member:`~Py_buffer.itemsize` still has | ||
| 137 | + be set to ``NULL``, but :c:member:`~Py_buffer.itemsize` still has | ||
| 138 | 138 | the value for the original format. | |
| 139 | 139 | ||
| 140 | 140 | If :c:member:`~Py_buffer.shape` is present, the equality | |
| 141 | 141 | ``product(shape) * itemsize == len`` still holds and the consumer | |
| 142 | 142 | can use :c:member:`~Py_buffer.itemsize` to navigate the buffer. | |
| 143 | 143 | ||
| 144 | - If :c:member:`~Py_buffer.shape` is *NULL* as a result of a :c:macro:`PyBUF_SIMPLE` | ||
| 144 | + If :c:member:`~Py_buffer.shape` is ``NULL`` as a result of a :c:macro:`PyBUF_SIMPLE` | ||
| 145 | 145 | or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard | |
| 146 | 146 | :c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``. | |
| 147 | 147 | ||
| 148 | 148 | .. c:member:: const char \*format | |
| 149 | 149 | ||
| 150 | 150 | A *NUL* terminated string in :mod:`struct` module style syntax describing | |
| 151 | - the contents of a single item. If this is *NULL*, ``"B"`` (unsigned bytes) | ||
| 151 | + the contents of a single item. If this is ``NULL``, ``"B"`` (unsigned bytes) | ||
| 152 | 152 | is assumed. | |
| 153 | 153 | ||
| 154 | 154 | This field is controlled by the :c:macro:`PyBUF_FORMAT` flag. | |
@@ -158,7 +158,7 @@ a buffer, see :c:func:`PyObject_GetBuffer`. | |||
| 158 | 158 | The number of dimensions the memory represents as an n-dimensional array. | |
| 159 | 159 | If it is ``0``, :c:member:`~Py_buffer.buf` points to a single item representing | |
| 160 | 160 | a scalar. In this case, :c:member:`~Py_buffer.shape`, :c:member:`~Py_buffer.strides` | |
| 161 | - and :c:member:`~Py_buffer.suboffsets` MUST be *NULL*. | ||
| 161 | + and :c:member:`~Py_buffer.suboffsets` MUST be ``NULL``. | ||
| 162 | 162 | ||
| 163 | 163 | The macro :c:macro:`PyBUF_MAX_NDIM` limits the maximum number of dimensions | |
| 164 | 164 | to 64. Exporters MUST respect this limit, consumers of multi-dimensional | |
@@ -248,7 +248,7 @@ readonly, format | |||
| 248 | 248 | .. c:macro:: PyBUF_FORMAT | |
| 249 | 249 | ||
| 250 | 250 | Controls the :c:member:`~Py_buffer.format` field. If set, this field MUST | |
| 251 | - be filled in correctly. Otherwise, this field MUST be *NULL*. | ||
| 251 | + be filled in correctly. Otherwise, this field MUST be ``NULL``. | ||
| 252 | 252 | ||
| 253 | 253 | ||
| 254 | 254 | :c:macro:`PyBUF_WRITABLE` can be \|'d to any of the flags in the next section. | |
@@ -349,9 +349,9 @@ The logical structure of NumPy-style arrays is defined by :c:member:`~Py_buffer. | |||
| 349 | 349 | ||
| 350 | 350 | If ``ndim == 0``, the memory location pointed to by :c:member:`~Py_buffer.buf` is | |
| 351 | 351 | interpreted as a scalar of size :c:member:`~Py_buffer.itemsize`. In that case, | |
| 352 | - both :c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides` are *NULL*. | ||
| 352 | + both :c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides` are ``NULL``. | ||
| 353 | 353 | ||
| 354 | - If :c:member:`~Py_buffer.strides` is *NULL*, the array is interpreted as | ||
| 354 | + If :c:member:`~Py_buffer.strides` is ``NULL``, the array is interpreted as | ||
| 355 | 355 | a standard n-dimensional C-array. Otherwise, the consumer must access an | |
| 356 | 356 | n-dimensional array as follows: | |
| 357 | 357 | ||
@@ -438,7 +438,7 @@ Buffer-related functions | |||
| 438 | 438 | ||
| 439 | 439 | Send a request to *exporter* to fill in *view* as specified by *flags*. | |
| 440 | 440 | If the exporter cannot provide a buffer of the exact type, it MUST raise | |
| 441 | - :c:data:`PyExc_BufferError`, set :c:member:`view->obj` to *NULL* and | ||
| 441 | + :c:data:`PyExc_BufferError`, set :c:member:`view->obj` to ``NULL`` and | ||
| 442 | 442 | return ``-1``. | |
| 443 | 443 | ||
| 444 | 444 | On success, fill in *view*, set :c:member:`view->obj` to a new reference | |
@@ -518,7 +518,7 @@ Buffer-related functions | |||
| 518 | 518 | ||
| 519 | 519 | On success, set :c:member:`view->obj` to a new reference to *exporter* and | |
| 520 | 520 | return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set | |
| 521 | - :c:member:`view->obj` to *NULL* and return ``-1``; | ||
| 521 | + :c:member:`view->obj` to ``NULL`` and return ``-1``; | ||
| 522 | 522 | ||
| 523 | 523 | If this function is used as part of a :ref:`getbufferproc <buffer-structs>`, | |
| 524 | 524 | *exporter* MUST be set to the exporting object and *flags* must be passed | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,7 @@ Direct API functions | |||
| 48 | 48 | .. c:function:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len) | |
| 49 | 49 | ||
| 50 | 50 | Create a new bytearray object from *string* and its length, *len*. On | |
| 51 | - failure, *NULL* is returned. | ||
| 51 | + failure, ``NULL`` is returned. | ||
| 52 | 52 | ||
| 53 | 53 | ||
| 54 | 54 | .. c:function:: PyObject* PyByteArray_Concat(PyObject *a, PyObject *b) | |
@@ -58,13 +58,13 @@ Direct API functions | |||
| 58 | 58 | ||
| 59 | 59 | .. c:function:: Py_ssize_t PyByteArray_Size(PyObject *bytearray) | |
| 60 | 60 | ||
| 61 | - Return the size of *bytearray* after checking for a *NULL* pointer. | ||
| 61 | + Return the size of *bytearray* after checking for a ``NULL`` pointer. | ||
| 62 | 62 | ||
| 63 | 63 | ||
| 64 | 64 | .. c:function:: char* PyByteArray_AsString(PyObject *bytearray) | |
| 65 | 65 | ||
| 66 | 66 | Return the contents of *bytearray* as a char array after checking for a | |
| 67 | - *NULL* pointer. The returned array always has an extra | ||
| 67 | + ``NULL`` pointer. The returned array always has an extra | ||
| 68 | 68 | null byte appended. | |
| 69 | 69 | ||
| 70 | 70 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,14 +37,14 @@ called with a non-bytes parameter. | |||
| 37 | 37 | .. c:function:: PyObject* PyBytes_FromString(const char *v) | |
| 38 | 38 | ||
| 39 | 39 | Return a new bytes object with a copy of the string *v* as value on success, | |
| 40 | - and *NULL* on failure. The parameter *v* must not be *NULL*; it will not be | ||
| 40 | + and ``NULL`` on failure. The parameter *v* must not be ``NULL``; it will not be | ||
| 41 | 41 | checked. | |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | 44 | .. c:function:: PyObject* PyBytes_FromStringAndSize(const char *v, Py_ssize_t len) | |
| 45 | 45 | ||
| 46 | 46 | Return a new bytes object with a copy of the string *v* as value and length | |
| 47 | - *len* on success, and *NULL* on failure. If *v* is *NULL*, the contents of | ||
| 47 | + *len* on success, and ``NULL`` on failure. If *v* is ``NULL``, the contents of | ||
| 48 | 48 | the bytes object are uninitialized. | |
| 49 | 49 | ||
| 50 | 50 | ||
@@ -145,7 +145,7 @@ called with a non-bytes parameter. | |||
| 145 | 145 | whether there are any other null bytes. The data must not be | |
| 146 | 146 | modified in any way, unless the object was just created using | |
| 147 | 147 | ``PyBytes_FromStringAndSize(NULL, size)``. It must not be deallocated. If | |
| 148 | - *o* is not a bytes object at all, :c:func:`PyBytes_AsString` returns *NULL* | ||
| 148 | + *o* is not a bytes object at all, :c:func:`PyBytes_AsString` returns ``NULL`` | ||
| 149 | 149 | and raises :exc:`TypeError`. | |
| 150 | 150 | ||
| 151 | 151 | ||
@@ -159,7 +159,7 @@ called with a non-bytes parameter. | |||
| 159 | 159 | Return the null-terminated contents of the object *obj* | |
| 160 | 160 | through the output variables *buffer* and *length*. | |
| 161 | 161 | ||
| 162 | - If *length* is *NULL*, the bytes object | ||
| 162 | + If *length* is ``NULL``, the bytes object | ||
| 163 | 163 | may not contain embedded null bytes; | |
| 164 | 164 | if it does, the function returns ``-1`` and a :exc:`ValueError` is raised. | |
| 165 | 165 | ||
@@ -181,7 +181,7 @@ called with a non-bytes parameter. | |||
| 181 | 181 | appended to *bytes*; the caller will own the new reference. The reference to | |
| 182 | 182 | the old value of *bytes* will be stolen. If the new object cannot be | |
| 183 | 183 | created, the old reference to *bytes* will still be discarded and the value | |
| 184 | - of *\*bytes* will be set to *NULL*; the appropriate exception will be set. | ||
| 184 | + of *\*bytes* will be set to ``NULL``; the appropriate exception will be set. | ||
| 185 | 185 | ||
| 186 | 186 | ||
| 187 | 187 | .. c:function:: void PyBytes_ConcatAndDel(PyObject **bytes, PyObject *newpart) | |
@@ -201,5 +201,5 @@ called with a non-bytes parameter. | |||
| 201 | 201 | desired. On success, *\*bytes* holds the resized bytes object and ``0`` is | |
| 202 | 202 | returned; the address in *\*bytes* may differ from its input value. If the | |
| 203 | 203 | reallocation fails, the original bytes object at *\*bytes* is deallocated, | |
| 204 | - *\*bytes* is set to *NULL*, :exc:`MemoryError` is set, and ``-1`` is | ||
| 204 | + *\*bytes* is set to ``NULL``, :exc:`MemoryError` is set, and ``-1`` is | ||
| 205 | 205 | returned. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments