On 12/4/20 12:45 PM, Daniel Moisset wrote:
case (d = a):
This is a SyntaxError, (d=a) is not a pattern.
Ah, right. I was thinking of the case when a type was specified, aka
case MyObj(d = a):
--
~Ethan~
_______________________________________________
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/KGO6ALVU7GADZ6ZCIGSPZJVKFBNI2SEY/
Code of Conduct: http://python.org/psf/codeofconduct/