mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-119467: Fix Py_buffer.format type and correct documentation typo (#119475)
This commit is contained in:
parent
c7a5e1e550
commit
3b26cd8ca0
1 changed files with 2 additions and 2 deletions
|
@ -147,9 +147,9 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
|
|||
or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard
|
||||
: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)
|
||||
is assumed.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue