In this example code from the PEP:

match shape:
    case Point(x, y):
        ...
    case Rectangle(x0, y0, x1, y1, painted=True):

What is the "painted=True" portion doing?  Is it requiring that the painted 
attribute of the shape object be True in order to match?

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

Reply via email to