[issue44741] Pattern Matching - star subpattern with a subject derived from collections.abc.Sequence
Pierre Quentel
report at bugs.python.org
Thu Jul 29 03:03:04 EDT 2021
Pierre Quentel <pierre.quentel at gmail.com> added the comment:
I found why len() is required, it's to avoid trying to match the subject (thus consuming a part of it) if its length is less than the number of non-star patterns, as explained in the PEP.
My mistake, sorry.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44741>
_______________________________________
More information about the Python-bugs-list
mailing list