Skip to content

Commit

Permalink
Re-order format units.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Jan 2, 2025
1 parent e7198bc commit fac1989
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Doc/c-api/arg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,10 @@ Other objects
in *items*. The C arguments must correspond to the individual format units in
*items*. Format units for sequences may be nested.

If *items* contains format units which store
a :ref:`borrowed buffer <c-arg-borrowed-buffer>` or
a :term:`borrowed reference`
(``y``, ``y#``, ``s``, ``s#``, ``z``, ``z#``, ``S``, ``Y``, ``U``,
``O`` or ``O!``), the object must be a Python tuple.
If *items* contains format units which store a :ref:`borrowed buffer
<c-arg-borrowed-buffer>` (``s``, ``s#``, ``z``, ``z#``, ``y``, or ``y#``)
or a :term:`borrowed reference` (``S``, ``Y``, ``U``, ``O``, or ``O!``),
the object must be a Python tuple.
The *converter* for the ``O&`` format unit in *items* must not store
a borrowed buffer or a borrowed reference.

Expand Down

0 comments on commit fac1989

Please sign in to comment.