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 ryan-duve committed Dec 26, 2023
1 parent 67e1fc2 commit a72e2d6
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 a72e2d6

Please sign in to comment.