File tree 1 file changed +17
-0
lines changed
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.
333
333
equal to ``0 ``, and any modification due to ``from __future__ import `` is
334
334
discarded.
335
335
336
+ The available :ref: `compiler flags <ast-compiler-flags >` are accessible as macros.
337
+
336
338
.. c :member :: int cf_flags
337
339
338
340
Compiler flags.
@@ -348,6 +350,21 @@ the same library that the Python runtime is using.
348
350
.. versionchanged :: 3.8
349
351
Added *cf_feature_version * field.
350
352
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 `.
351
368
352
369
.. c :var :: int CO_FUTURE_DIVISION
353
370
You can’t perform that action at this time.
0 commit comments