Skip to content

Commit

Permalink
pythongh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Fl…
Browse files Browse the repository at this point in the history
…ags (python#113241)
  • Loading branch information
dreamflow authored and Glyphack committed Jan 27, 2024
1 parent d166205 commit 8ad4105
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 8ad4105

Please sign in to comment.