Repository navigation
Conversation
* 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).
picnixz
reviewed
Dec 5, 2026
| ... for name in vars(module) | ||
| ... if name.startswith('a') | ||
| ... ] | ||
| ['array', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh'] |
Member
There was a problem hiding this comment.
Note for whoever merges this: this should not be merged to 3.14 or 3.15 (I think) because asinpi doesn't exist there.
|
📖 1 file modified Preview · build overview · cpython-previews · built Dec. 5, 2026, 10:53 a.m. UTC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few example outputs in the expressions reference no longer match what the interpreter prints:
"helloworld"/"Hello, Blaise!", but astrrepr uses single quotes:'helloworld'/'Hello, Blaise!'.arrayandmaththat start withais missingacospi,asinpi,atan2piandatanpi, which were added in Add 'half turns' functions (cospi et al) to math module following C23 & IEEE754-2019 #150534.I checked all three examples against a current
mainbuild.Note for backports: the
mathlist change ismain-only (the*pifunctions 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.