![](https://secure.gravatar.com/avatar/047f2332cde3730f1ed661eebb0c5686.jpg?s=120&d=mm&r=g)
Yes, you’ve got that exactly right! I think the pep has an example for tuple((x, y)). On Thu, Jul 9, 2020 at 13:08 Rob Cliffe via Python-Dev < python-dev@python.org> wrote:
One thing I don't understand about the PEP:
case [x,y]:
IIUC matches any 2-element sequence. How would you match specifically a 2-item list (say)? Would it be
case list([x,y]):
I would appreciate it if some kind person could enlighten me. TIA Rob Cliffe _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-leave@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/NJLVOPNA... Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido (mobile)