]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Flags (#113241)
authordreamflow <dreamflow@users.noreply.github.com>
Mon, 18 Dec 2023 16:14:15 +0000 (17:14 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Dec 2023 16:14:15 +0000 (16:14 +0000)
Doc/library/ast.rst

index 4ebbe0e5471c88c3a2bf75bc0e7f87e2e17fe53a..9997edd0fb5fc0eaa357d37753037edb54622fca 100644 (file)
@@ -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