mirror of https://github.com/python/cpython
[3.13] gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475) (#119602)
gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475)
(cherry picked from commit 3b26cd8ca0
)
Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
This commit is contained in:
parent
46d7712829
commit
f1302c1e47
|
@ -147,9 +147,9 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
|
||||||
or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard
|
or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard
|
||||||
:c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``.
|
:c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``.
|
||||||
|
|
||||||
.. c:member:: const char *format
|
.. c:member:: char *format
|
||||||
|
|
||||||
A *NUL* terminated string in :mod:`struct` module style syntax describing
|
A *NULL* terminated string in :mod:`struct` module style syntax describing
|
||||||
the contents of a single item. If this is ``NULL``, ``"B"`` (unsigned bytes)
|
the contents of a single item. If this is ``NULL``, ``"B"`` (unsigned bytes)
|
||||||
is assumed.
|
is assumed.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue