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
Easier creation of _ast nodes #46757
Comments
This patch adds two things to the _ast module:
Martin, what do you think? |
On second thought, restricting node attributes may prevent custom AST |
Indeed. If anything is to be checked, it should be whether the child As for being able to pass constructor arguments: I'd expect them |
Okay, I'm dropping the attribute restriction part. Attaching new patch that allows creating nodes with fields (not |
Looks fine to me. It might be reasonable to further restrict the |
Committed in r62049. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: