File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,8 @@ the same library that the Python runtime is using.
333333 equal to ``0 ``, and any modification due to ``from __future__ import `` is
334334 discarded.
335335
336+ The available :ref: `compiler flags <ast-compiler-flags >` are accessible as macros.
337+
336338 .. c :member :: int cf_flags
337339
338340 Compiler flags.
@@ -348,6 +350,21 @@ the same library that the Python runtime is using.
348350 .. versionchanged :: 3.8
349351 Added *cf_feature_version * field.
350352
353+ .. c :macro :: PyCF_ALLOW_TOP_LEVEL_AWAIT
354+
355+ Equivalent to :data: `ast.PyCF_ALLOW_TOP_LEVEL_AWAIT `.
356+
357+ .. c :macro :: PyCF_ONLY_AST
358+
359+ Equivalent to :data: `ast.PyCF_ONLY_AST `.
360+
361+ .. c :macro :: PyCF_OPTIMIZED_AST
362+
363+ Equivalent to :data: `ast.PyCF_OPTIMIZED_AST `.
364+
365+ .. c :macro :: PyCF_TYPE_COMMENTS
366+
367+ Equivalent to :data: `ast.PyCF_TYPE_COMMENTS `.
351368
352369.. c :var :: int CO_FUTURE_DIVISION
353370
You can’t perform that action at this time.
0 commit comments