Skip to content

Commit 44fd700

Browse files
Update docs.
1 parent ab1ea18 commit 44fd700

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Doc/c-api/arg.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,9 @@ Other objects
339339

340340
.. versionadded:: 3.3
341341

342-
``(items)`` (:class:`tuple`) [*matching-items*]
343-
The object must be a Python sequence whose length is the number of format units
342+
``(items)`` (sequence) [*matching-items*]
343+
The object must be a Python sequence (except :class:`str`, :class:`bytes`
344+
or :class:`bytearray`) whose length is the number of format units
344345
in *items*. The C arguments must correspond to the individual format units in
345346
*items*. Format units for sequences may be nested.
346347

@@ -351,6 +352,9 @@ Other objects
351352
The *converter* for the ``O&`` format unit in *items* must not store
352353
a borrowed buffer or a borrowed reference.
353354

355+
.. versionchanged:: next
356+
:class:`str` and :class:`bytearray` objects no longer accepted as a sequence.
357+
354358
.. deprecated:: next
355359
Non-tuple sequences are deprecated if *items* contains format units
356360
which store a borrowed buffer or a borrowed reference.

0 commit comments

Comments
 (0)