summaryrefslogtreecommitdiffstats
path: root/Include/compile.h
diff options
context:
space:
mode:
authorMatthias Bussonnier <bussonniermatthias@gmail.com>2019-05-21 20:12:03 (GMT)
committerYury Selivanov <yury@magic.io>2019-05-21 20:12:02 (GMT)
commit565b4f1ac7304d1e690c404ca8316f383ba60862 (patch)
tree193faa5ced2666a1fba1b3715c89946398ccbb12 /Include/compile.h
parentaa32a7e1116f7aaaef9fec453db910e90ab7b101 (diff)
downloadcpython-565b4f1ac7304d1e690c404ca8316f383ba60862.zip
cpython-565b4f1ac7304d1e690c404ca8316f383ba60862.tar.gz
cpython-565b4f1ac7304d1e690c404ca8316f383ba60862.tar.bz2
bpo-34616: Add PyCF_ALLOW_TOP_LEVEL_AWAIT to allow top-level await (GH-13148)
Co-Authored-By: Yury Selivanov <yury@magic.io>
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h
index 1370867..a833caa 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -23,6 +23,7 @@ PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
#define PyCF_ONLY_AST 0x0400
#define PyCF_IGNORE_COOKIE 0x0800
#define PyCF_TYPE_COMMENTS 0x1000
+#define PyCF_ALLOW_TOP_LEVEL_AWAIT 0x2000
#ifndef Py_LIMITED_API
typedef struct {