[New-bugs-announce] [issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)
serif
report at bugs.python.org
Mon Jun 28 10:24:51 EDT 2021
New submission from serif <vrenna at 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 at python
components: Documentation
messages: 396640
nosy: docs at 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 <report at bugs.python.org>
<https://bugs.python.org/issue44526>
_______________________________________
More information about the New-bugs-announce
mailing list