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): -- Greg _______________________________________________ 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/SOR5FTCABRB64M23YU3ZAOPC7FQ66Z4N/ Code of Conduct: http://python.org/psf/codeofconduct/
