On 26/06/20 1:08 pm, Paul Svensson wrote:
We already allow (x, x) = (1, 2) So, why do we need to disallow binding several values to the same name ?
I think it was done because people might expect that to match only if the *same* value appears in both places. Some other languages have pattern matching that works that way. I think the intention is to leave open the possibility of implementing it in the future. -- Greg _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@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/RFBU4JCJACOZSJI6AVDUAIM7ACVQNOV7/ Code of Conduct: http://python.org/psf/codeofconduct/