On 2020-06-25 04:54, Greg Ewing wrote:
I had another thought about a way to make the bound names explicit.

     # Keyword
     case Point(x -> px, y -> py):

     # Positional
     case Point(-> x, -> y):

     # Sub-pattern, positional
     case Line(Point() -> p1, Point() -> p2):

     # Sub-pattern, keyword
     case Line(start: Point() -> p1, end: Point() -> p2):

How do you indicate that you want it to match anything and don't care about the value?
_______________________________________________
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/MKK622JE6SNUSPUJOJPWH3MZ6XH3HV7M/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to