aboutsummaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky2014-03-28 02:37:28 +0200
committerPaul Sokolovsky2014-03-28 02:40:26 +0200
commitc4d589e2bb228e2b4a0942f3bd76479ec18acf84 (patch)
tree848c4afe975bb03b07d21225c724834846231149 /py/obj.h
parent182c31a2085c89c722f188102603ce857696de11 (diff)
objgenerator: close(): Throw instance of GeneratorExit (not type).
To comply with Python semantics and allow use of mp_obj_is_subclass_fast() for exception matching.
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 af38253c5..500ffbdc0 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -231,6 +231,7 @@ extern const mp_obj_t mp_const_false;
extern const mp_obj_t mp_const_true;
extern const mp_obj_t mp_const_empty_tuple;
extern const mp_obj_t mp_const_ellipsis;
+extern const mp_obj_t mp_const_GeneratorExit;
// General API for objects