Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-134674: fix: ast.MatchStar.name incorrectly having class-level default value#134676
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
…unctions (GH-113575) (#132437)gh-58211: Add tests for the `__self__` attribute of builtins functions (GH-113575)---------(cherry picked from commit891465f)Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>Co-authored-by: Victor Stinner <vstinner@python.org>Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…GH-132503)(cherry picked from commit887eabc)
…H-132497)Now all protocols always accept the Bluetooth address as string andgetsockname() always returns the Bluetooth address as string.* BTPROTO_SCO now accepts not only bytes, but str.* BTPROTO_SCO now checks address for embedded null.* On *BSD, BTPROTO_HCI now accepts str instead of bytes.* On FreeBSD, getsockname() for BTPROTO_HCI now returns str instead of bytes.* On NetBSD and DragonFly BSD, BTPROTO_HCI now checks address for embedded null.(cherry picked from commit1fc1df8)
…ZoneInfo` (GH-114731) (#132563)gh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (GH-114731)(cherry picked from commit884df11)Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
…GH-132567) (#132573)Docs: Synchronise ``indexsidebar.html`` with docsbuild-scripts (GH-132567)(cherry picked from commit4f10b93)Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
) (#132603)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This was referencedMay 25, 2025
Sign up for freeto 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.
Uh oh!
There was an error while loading.Please reload this page.
Fixesgh-134674
Problem
ast.MatchStar.name
incorrectly appears to have a class-level default value when usingast.dump()
. The issue causesast.MatchStar(name=None)
to display asMatchStar()
instead of the expectedMatchStar(name=None)
.Solution
Change the ASDL definition of
MatchStar
, and addMatchStar
to the special cases list inast.dump()
alongsideConstant
andMatchSingleton
.📚 Documentation preview 📚:https://cpython-previews--134676.org.readthedocs.build/