Skip to content
Prev Previous commit
Next Next commit
Add default to options
  • Loading branch information
donbarbos committed May 5, 2025
commit d5921da596b32737e7266ab2d3be00ecdaf5c044
8 changes: 5 additions & 3 deletions Doc/library/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2152,7 +2152,7 @@
body of an :class:`AsyncFunctionDef`.

.. note::
When a string is parsed by :func:`ast.parse`, operator nodes (subclasses

Check warning on line 2155 in Doc/library/ast.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:class reference target not found: ast.operator [ref.class]

Check warning on line 2155 in Doc/library/ast.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:class reference target not found: ast.unaryop [ref.class]

Check warning on line 2155 in Doc/library/ast.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:class reference target not found: ast.cmpop [ref.class]

Check warning on line 2155 in Doc/library/ast.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:class reference target not found: ast.boolop [ref.class]

Check warning on line 2155 in Doc/library/ast.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:class reference target not found: ast.expr_context [ref.class]
of :class:`ast.operator`, :class:`ast.unaryop`, :class:`ast.cmpop`,
:class:`ast.boolop` and :class:`ast.expr_context`) on the returned tree
will be singletons. Changes to one will be reflected in all other
Expand Down Expand Up @@ -2574,20 +2574,22 @@

.. option:: --feature-version <version>

Python version in the format 3.x (for example, 3.10).
Python version in the format 3.x (for example, 3.10). Defaults to the
current version of the interpreter.

.. versionadded:: next

.. option:: -O <level>
--optimize <level>

Optimization level for parser.
Optimization level for parser. Defaults to no optimization.

.. versionadded:: next

.. option:: --show-empty
Comment thread
donbarbos marked this conversation as resolved.

Show empty lists and fields that are ``None``.
Show empty lists and fields that are ``None``. Defaults to showing empty
Comment thread
sobolevn marked this conversation as resolved.
Outdated
objects.

.. versionadded:: next

Expand Down
Loading