-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-116022: Improve repr()
of AST nodes
#117046
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 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
7461655
Improve repr() of AST nodes
tomasr8 447261b
Add news entry
tomasr8 74759bc
Improve news entry
tomasr8 4ffc1fb
Follow PEP7
tomasr8 6094100
Fix test
tomasr8 5cde4fc
Regenerate files
tomasr8 00133b8
Merge branch 'main' into ast-repr
JelleZijlstra e1b7643
Fix missing whitespace
tomasr8 0308982
Check return values
tomasr8 3f2bf3f
Check for retval < 0 rather than == -1
tomasr8 4386a5a
Fix missing whitespace
tomasr8 af3b2a3
Simplify code
tomasr8 1aaa1c0
Update Parser/asdl_c.py
JelleZijlstra 06e4657
Merge branch 'main' into ast-repr
AlexWaygood df70943
Fix leaked references
tomasr8 ed89975
Add an assertion
tomasr8 d8b3bff
Simplify code
tomasr8 cfd6cdf
Add tests
tomasr8 f022378
Use PyUnicodeWriter instead of string concatenation
tomasr8 0f916cc
Improve news entry
tomasr8 e2b0415
PEP7 fixes
tomasr8 9f405ac
Merge branch 'main' into ast-repr
tomasr8 b06c8a4
Use the public Unicode Writer API where possible
tomasr8 32a5169
Increase max depth to 3
tomasr8 7603910
Add comments
tomasr8 74c57a6
Add versionchanged note to ast module docs
tomasr8 ddd7e71
Use `PyUnicodeWriter_WriteUTF8`
tomasr8 132932a
Check for errors
tomasr8 a341c57
Use snapshots for testing
tomasr8 d03c3d1
Fix typo
tomasr8 44b3303
Add test folder to Makefile
tomasr8 0b52a65
Switch back to the private API
tomasr8 0b19d2e
Merge branch 'main' into ast-repr
tomasr8 2ed3f99
Move test data inside test_ast
tomasr8 c94c197
Merge branch 'main' into ast-repr
tomasr8 6ca6b5b
Fix tests
tomasr8 df34a04
Apply review suggestions
tomasr8 ab823cc
Merge branch 'main' into ast-repr
tomasr8 abd35b0
Merge branch 'main' into ast-repr
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
Simplify code
- Loading branch information
commit d8b3bff9cd2cc973544834c25cad984955fb026a
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.