summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/ast.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index 4ebbe0e..9997edd 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -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