summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/obj.h b/py/obj.h
index 19d32198b1..7c3ef8c55b 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -152,7 +152,7 @@ struct _mp_obj_type_t {
mp_store_item_fun_t store_item;
mp_fun_1_t getiter;
- mp_fun_1_t iternext;
+ mp_fun_1_t iternext; // may return MP_OBJ_NULL as an optimisation instead of raising StopIteration() (with no args)
// Alternatively, pointer(s) to interfaces to save space
// in mp_obj_type_t at the expense of extra pointer and extra dereference
@@ -221,7 +221,6 @@ 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_stop_iteration; // special object indicating end of iteration (not StopIteration exception!)
// General API for objects