Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc typo in "What’s New In Python 3.10" (x/y-axis) #88692

Closed
serif mannequin opened this issue Jun 28, 2021 · 5 comments
Closed

Doc typo in "What’s New In Python 3.10" (x/y-axis) #88692

serif mannequin opened this issue Jun 28, 2021 · 5 comments
Labels
3.10 only security fixes docs Documentation in the Doc dir

Comments

@serif
Copy link
Mannequin

serif mannequin commented Jun 28, 2021

BPO 44526
Nosy @brandtbucher, @nanjekyejoannah, @jdevries3133, @serif
PRs
  • bpo-44526: fix typo in whatsnew/3.10 #26944
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-06-29.14:25:25.901>
    created_at = <Date 2021-06-28.14:24:51.973>
    labels = ['3.10', 'docs']
    title = 'Doc typo in "What\xe2\x80\x99s New In Python 3.10" (x/y-axis)'
    updated_at = <Date 2021-06-29.14:25:25.901>
    user = 'https://github.com/serif'

    bugs.python.org fields:

    activity = <Date 2021-06-29.14:25:25.901>
    actor = 'pablogsal'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-06-29.14:25:25.901>
    closer = 'pablogsal'
    components = ['Documentation']
    creation = <Date 2021-06-28.14:24:51.973>
    creator = 'serif2'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44526
    keywords = ['patch']
    message_count = 5.0
    messages = ['396640', '396674', '396702', '396717', '396718']
    nosy_count = 5.0
    nosy_names = ['docs@python', 'brandtbucher', 'nanjekyejoannah', 'jack__d', 'serif2']
    pr_nums = ['26944']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44526'
    versions = ['Python 3.10']

    @serif
    Copy link
    Mannequin Author

    serif mannequin commented Jun 28, 2021

    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.")
    

    @serif serif mannequin added the 3.10 only security fixes label Jun 28, 2021
    @serif serif mannequin assigned docspython Jun 28, 2021
    @serif serif mannequin added the docs Documentation in the Doc dir label Jun 28, 2021
    @jdevries3133
    Copy link
    Mannequin

    jdevries3133 mannequin commented Jun 28, 2021

    @serif2 nice catch!

    @brandtbucher
    Copy link
    Member

    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.

    @nanjekyejoannah
    Copy link
    Member

    Since this is the intended behavior, we can just close the issue.

    @nanjekyejoannah
    Copy link
    Member

    I mean intended wording

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.10 only security fixes docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants