-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Make python -m ast more configurable #82529
Comments
Allow user to set indent level and parsing status of type comments |
Why do you need this feature? |
I was checking typed_ast and i wanted to know which parts changed and Also it can be handy to have an indention option to change it for fitting On Thu, Oct 3, 2019, 11:45 AM Serhiy Storchaka <report@bugs.python.org>
|
Sorry, I do not understand you. typed_ast does not have such features as multiline dump() and CLI. What relation is this have with the --type-comments flag? As for fitting tree into the terminal width, the current indentation is 3 spaces. Changing it to 2 spaces will not save much horisontal space, and 1-space indentation is not particularly readable. I do not want to complicate this tiny feature. If you want more control on the output, you can write a small Python script which calls ast.dump() programmatically. |
|
I don't have any strong opinion either way, so it looks like we need to wait until someone else will ask for this. |
Thanks Batuhan Taşkaya. |
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: