Skip to content

Commit a72e2d6

Browse files
dreamflowryan-duve
authored andcommitted
pythongh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Flags (python#113241)
1 parent 67e1fc2 commit a72e2d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/ast.rst

+7
Original file line numberDiff line numberDiff line change
@@ -2457,6 +2457,13 @@ effects on the compilation of a program:
24572457
Generates and returns an abstract syntax tree instead of returning a
24582458
compiled code object.
24592459

2460+
.. data:: PyCF_OPTIMIZED_AST
2461+
2462+
The returned AST is optimized according to the *optimize* argument
2463+
in :func:`compile` or :func:`ast.parse`.
2464+
2465+
.. versionadded:: 3.13
2466+
24602467
.. data:: PyCF_TYPE_COMMENTS
24612468

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

0 commit comments

Comments
 (0)