File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments