From: dreamflow Date: Mon, 18 Dec 2023 16:14:15 +0000 (+0100) Subject: gh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Flags (#113241) X-Git-Tag: v3.13.0a3~339 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59f0766ae5aef8bd393a53ab9234371b7d165ec3;p=thirdparty%2FPython%2Fcpython.git gh-108113: [docs] mention PyCF_OPTIMIZED_AST in ast Compiler Flags (#113241) --- diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 4ebbe0e5471c..9997edd0fb5f 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