Henk-Jaap Wagenaar wrote:
> The not binding is there only to allow the main way in which "_" is special
> in match/case: ...
The non-binding behavior is useful in other ways:
match range(HUGE_INT):
case [*_, last]:
print(last)
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/2BYZQUCYIJKJSS6DRDVLRWI5B767S6ZO/
Code of Conduct: http://python.org/psf/codeofconduct/