Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improveast CLI with new options:--feature-version,--optimize, and--show-empty #133367

Closed
Assignees
donbarbos
Labels
stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
@sobolevn

Description

@sobolevn

Feature or enhancement

Current options:

» ./python.exe -m ast --helpusage: python.exe -m ast [-h] [-m {exec,single,eval,func_type}] [--no-type-comments] [-a]                         [-i INDENT]                         [infile]positional arguments:  infile                the file to parse; defaults to stdinoptions:  -h, --help            show this help message and exit  -m, --mode {exec,single,eval,func_type}                        specify what kind of code must be parsed  --no-type-comments    don't add information about type comments  -a, --include-attributes                        include attributes such as line numbers and column offsets  -i, --indent INDENT   indentation of nodes (number of spaces)

Basically, our CLI is an interface toast.dump +ast.parse,ast.parse.

But,ast.parse has several important options that are missing right now. I propose to add them:

  • --feature-version
  • and--optimize fromparse
  • --show-empty fromdump

Docs:

cc@donbarbos, will you be interested in working on this issue?
If not, please, tell me about that - I want to have this in 3.14 and the feature freeze is in several days.

Linked PRs

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp