aboutsummaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorpohmelie2016-01-27 23:23:11 +0300
committerDamien George2016-04-13 15:26:38 +0100
commit81ebba7e0236163b7594938201bf3a6b802ebfaa (patch)
treef75ae92c1dd879507e718d6234c8b007c4070686 /py/obj.h
parent959ed931a4d4079b4902f3d56e1696a2370e6c20 (diff)
py: add async/await/async for/async with syntax
They are sugar for marking function as generator, "yield from" and pep492 python "semantically equivalents" respectively. @dpgeorge was the original author of this patch, but @pohmelie made changes to implement `async for` and `async with`.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 25f31ea5a..809acb5a3 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -561,6 +561,7 @@ extern const mp_obj_type_t mp_type_OSError;
extern const mp_obj_type_t mp_type_TimeoutError;
extern const mp_obj_type_t mp_type_OverflowError;
extern const mp_obj_type_t mp_type_RuntimeError;
+extern const mp_obj_type_t mp_type_StopAsyncIteration;
extern const mp_obj_type_t mp_type_StopIteration;
extern const mp_obj_type_t mp_type_SyntaxError;
extern const mp_obj_type_t mp_type_SystemExit;