-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
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
(cherry picked from commit ad3bbe8) Co-authored-by: Stan Ulbrych <[email protected]>
…unctions (GH-113575) (#132437) gh-58211: Add tests for the `__self__` attribute of builtins functions (GH-113575) --------- (cherry picked from commit 891465f) Co-authored-by: Adorilson Bezerra <[email protected]> Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
…32441) Docs: Fix specifications of `gcvisitobjects_t` (GH-132433) `gcvisitobjects_t` callbacks should return 1 for the iteration to continue instead of 0. (cherry picked from commit 1e5798e) Co-authored-by: da-woods <[email protected]>
…base (GH-132231) (GH-132443) Use only a limited number of randomly selected entries. (cherry picked from commit 842ab81) Co-authored-by: Serhiy Storchaka <[email protected]>
Fix a typo in c-api/typeobj.rst (GH-132317) (cherry picked from commit f69b344) Co-authored-by: Yongzi Li <[email protected]>
…32422) (#132485) Co-authored-by: Yuki Kobayashi <[email protected]>
…d FreeBSD (GH-132476) (GH-132498) On platforms where the file descriptor limit is larger than FD_SETSIZE that test was always skipped (FreeBSD) or always failing (NetBSD). (cherry picked from commit f7b24ff) Co-authored-by: Serhiy Storchaka <[email protected]>
…GH-132503) (cherry picked from commit 887eabc)
…H-132497) Now all protocols always accept the Bluetooth address as string and getsockname() 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 commit 1fc1df8)
…as `bases` (GH-132212) (#132548) gh-132176: Fix crash on `type()` when `tuple` subclass passed as `bases` (GH-132212) (cherry picked from commit b6c552f) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…ZoneInfo` (GH-114731) (#132563) gh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (GH-114731) (cherry picked from commit 884df11) Co-authored-by: Bogdan Romanyuk <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Kirill Podoprigora <[email protected]>
…GH-132567) (#132573) Docs: Synchronise ``indexsidebar.html`` with docsbuild-scripts (GH-132567) (cherry picked from commit 4f10b93) Co-authored-by: Adam Turner <[email protected]>
…H-132580) They were emitted if internet connection was not available. (cherry picked from commit 82f74eb) Co-authored-by: Serhiy Storchaka <[email protected]>
… no_proxy) (GH-132584) (GH-132585) (cherry picked from commit 8b7cb94) Co-authored-by: Serhiy Storchaka <[email protected]>
) (#132598) gh-130052: Fix search_map_for_section() error handling (GH-132594) * Don't call close() if the file descriptor is negative. * If close() fails, chain the existing exception. (cherry picked from commit 014c7f9) Co-authored-by: Victor Stinner <[email protected]>
) (#132603) Co-authored-by: Jelle Zijlstra <[email protected]>
This was referenced May 25, 2025
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.
Fixes gh-134674
Problem
ast.MatchStar.nameincorrectly 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 addMatchStarto the special cases list inast.dump()alongsideConstantandMatchSingleton.📚 Documentation preview 📚: https://cpython-previews--134676.org.readthedocs.build/