py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.

This commit is contained in:
Damien George
2014-03-26 19:27:58 +00:00
parent 688e220d26
commit 66eaf84b8c
23 changed files with 171 additions and 64 deletions

View File

@@ -1,3 +1,4 @@
#include <stdlib.h>
#include "nlr.h"
#include "misc.h"
@@ -55,7 +56,7 @@ STATIC mp_obj_t range_it_iternext(mp_obj_t o_in) {
o->cur += o->step;
return o_out;
} else {
return mp_const_stop_iteration;
return MP_OBJ_NULL;
}
}