Skip to content

Docs: Fix outdated example outputs in the expressions reference - #163203

Open
aliysnm wants to merge 1 commit into
python:mainfrom
aliysnm:docs-expressions-example-outputs
Open

aliysnm wants to merge 1 commit into
python:mainfrom
aliysnm:docs-expressions-example-outputs

Conversation

@aliysnm

@aliysnm aliysnm commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

A few example outputs in the expressions reference no longer match what the interpreter prints:

I checked all three examples against a current main build.

Note for backports: the math list change is main-only (the *pi functions don't exist on 3.15/3.14). The quote fixes apply to 3.15 and 3.14 as well, so a backport should keep only those. I'm happy to do the manual backports.

* String literal concatenation examples: the interpreter shows the
  resulting str with single quotes.
* Comprehension example: math now also has acospi(), asinpi(),
  atan2pi() and atanpi() (pythongh-150534).
... for name in vars(module)
... if name.startswith('a')
... ]
['array', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for whoever merges this: this should not be merged to 3.14 or 3.15 (I think) because asinpi doesn't exist there.

@read-the-docs-community

Copy link
Copy Markdown

📖 1 file modified


Preview · build overview · cpython-previews · built Dec. 5, 2026, 10:53 a.m. UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants