Skip to content

Commit

Permalink
gh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Flags (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamflow authored Dec 18, 2023
1 parent 70d378c commit 59f0766
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/library/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2457,6 +2457,13 @@ effects on the compilation of a program:
Generates and returns an abstract syntax tree instead of returning a
compiled code object.

.. data:: PyCF_OPTIMIZED_AST

The returned AST is optimized according to the *optimize* argument
in :func:`compile` or :func:`ast.parse`.

.. versionadded:: 3.13

.. data:: PyCF_TYPE_COMMENTS

Enables support for :pep:`484` and :pep:`526` style type comments
Expand Down

0 comments on commit 59f0766

Please sign in to comment.