Skip to content
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

bpo-38049: Add command-line interface for the ast module. #15724

Merged
merged 5 commits into from
Sep 9, 2019

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 7, 2019

Lib/ast.py Outdated Show resolved Hide resolved
Doc/library/ast.rst Outdated Show resolved Hide resolved

.. cmdoption:: -a, --include-attributes

Include attributes such as line numbers and column offsets.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be great have an example how to pass this params?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just pass them as any other. It is trivial.

@serhiy-storchaka serhiy-storchaka merged commit 832e864 into python:master Sep 9, 2019
@serhiy-storchaka serhiy-storchaka deleted the ast-cli branch September 9, 2019 20:36
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants