summaryrefslogtreecommitdiff
path: root/mpy-cross
diff options
context:
space:
mode:
authorKenny <3454741+WarriorOfWire@users.noreply.github.com>2020-07-21 00:01:22 -0700
committerKenny <3454741+WarriorOfWire@users.noreply.github.com>2020-07-23 20:40:16 -0700
commit51a79b1af7fa663bb078136611705c04df12970a (patch)
tree69e15aa9c69c8383885ff899d67b584e2a060935 /mpy-cross
parent543708416bc19bc1e77d859d013c4757433ad255 (diff)
add coroutine behavior for generators
coroutines don't have __next__; they also call themselves coroutines. This does not change the fact that `async def` methods are generators, but it does make them behave more like CPython.
Diffstat (limited to 'mpy-cross')
-rw-r--r--mpy-cross/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpy-cross/mpconfigport.h b/mpy-cross/mpconfigport.h
index 0b07a5b44..464c9113d 100644
--- a/mpy-cross/mpconfigport.h
+++ b/mpy-cross/mpconfigport.h
@@ -40,6 +40,7 @@
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#define MICROPY_CPYTHON_COMPAT (1)
+#define MICROPY_PY_ASYNC_AWAIT (1)
#define MICROPY_USE_INTERNAL_PRINTF (0)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)