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