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 -- 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/KGO6ALVU7GADZ6ZCIGSPZJVKFBNI2SEY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to