New submission from serif <vre...@live.com>: Page:
What’s New In Python 3.10 https://docs.python.org/3.10/whatsnew/3.10.html Section: PEP 634: Structural Pattern Matching Patterns and classes In the example code, x and y in the printed messages are swapped. case Point(x=0, y=y): print(f"Y={y} and the point is on the y-axis.") case Point(x=x, y=0): print(f"X={x} and the point is on the x-axis.") Should be: case Point(x=0, y=y): print(f"Y={y} and the point is on the x-axis.") case Point(x=x, y=0): print(f"X={x} and the point is on the y-axis.") ---------- assignee: docs@python components: Documentation messages: 396640 nosy: docs@python, serif2 priority: normal severity: normal status: open title: Doc typo in "What’s New In Python 3.10" (x/y-axis) versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44526> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com