-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-105858: Improve AST node constructors #105880
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b1b73d9
gh-105858: Improve AST node constructors
JelleZijlstra d417cf3
Merge remote-tracking branch 'upstream/main' into astcons
JelleZijlstra c74740a
Fix subclasses
JelleZijlstra 05d5569
Fix most deprecationwarnings in test_ast
JelleZijlstra f4b14ac
Merge remote-tracking branch 'upstream/main' into astcons
JelleZijlstra 0efcdf3
Fix renamed function
JelleZijlstra f941696
Fix pickling; fix a refleak
JelleZijlstra 4c42748
Fix other refleak
JelleZijlstra 1a9b872
Merge branch 'main' into astcons
JelleZijlstra db16cc7
Merge branch 'main' into astcons
JelleZijlstra 6bf677b
Update Parser/asdl_c.py
JelleZijlstra a2442b6
fix merge
JelleZijlstra 5a1d37a
Expand NEWS
JelleZijlstra c4627a1
Merge remote-tracking branch 'upstream/main' into astcons
JelleZijlstra 1f85438
docs
JelleZijlstra ff0cc67
Apply suggestions from code review
JelleZijlstra 54cf55f
Merge remote-tracking branch 'upstream/main' into astcons
JelleZijlstra 4bb0656
Reword Whats New note (based on suggestion by Alex Waygood)
JelleZijlstra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
Misc/NEWS.d/next/Core and Builtins/2023-06-16-21-29-06.gh-issue-105858.Q7h0EV.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Improve the constructors for :mod:`ast` nodes. Arguments of list types now | ||
default to an empty list if omitted, and optional fields default to ``None``. | ||
AST nodes now have an | ||
``__annotations__`` attribute with the expected types of their attributes. | ||
Passing unrecognized extra arguments to AST nodes is deprecated and will | ||
become an error in Python 3.15. Omitting a required argument to an AST node | ||
is deprecated and will become an error in Python 3.15. Patch by Jelle | ||
Zijlstra. |
Oops, something went wrong.
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.