This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Doc typo in "What’s New In Python 3.10" (x/y-axis)
Type: Stage: resolved
Components: Documentation Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: brandtbucher, docs@python, jack__d, nanjekyejoannah, serif2
Priority: normal Keywords: patch

Created on 2021-06-28 14:24 by serif2, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 26944 closed jack__d, 2021-06-28 23:40
Messages (5)
msg396640 - (view) Author: serif (serif2) Date: 2021-06-28 14:24
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.")
msg396674 - (view) Author: Jack DeVries (jack__d) * Date: 2021-06-28 23:41
@serif2 nice catch!
msg396702 - (view) Author: Brandt Bucher (brandtbucher) * (Python committer) Date: 2021-06-29 06:16
I don’t think this is a typo.

When x is 0, the point resides somewhere upon the vertical y axis. When y is 0, the point resides somewhere upon the horizontal x axis.

Try plotting the points (0, 1) and (1, 0), for example.
msg396717 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2021-06-29 12:10
Since this is the intended behavior, we can just close the issue.
msg396718 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2021-06-29 12:11
I mean intended wording
History
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88692
2021-06-29 14:25:25pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-06-29 12:11:06nanjekyejoannahsetmessages: + msg396718
2021-06-29 12:10:41nanjekyejoannahsetnosy: + nanjekyejoannah
messages: + msg396717
2021-06-29 06:16:31brandtbuchersetmessages: + msg396702
2021-06-29 06:07:13brandtbuchersetnosy: + brandtbucher
2021-06-28 23:41:17jack__dsetmessages: + msg396674
2021-06-28 23:40:15jack__dsetkeywords: + patch
nosy: + jack__d

pull_requests: + pull_request25511
stage: patch review
2021-06-28 14:24:51serif2create