diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-15 01:10:13 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-15 01:10:13 +0000 |
commit | f6532bb9e054fd20af5063b1e77ef98863f36c84 (patch) | |
tree | e1655fd67386ff2ee4329420db902dd8b5052ae0 /py/obj.h | |
parent | d1c37883756045fb92d58592181bf53481d7693d (diff) | |
download | micropython-f6532bb9e054fd20af5063b1e77ef98863f36c84.tar.gz micropython-f6532bb9e054fd20af5063b1e77ef98863f36c84.zip |
py: Simplify and remove redundant code for __iter__ method lookup.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ struct _mp_obj_type_t { // value=MP_OBJ_NULL means delete, value=MP_OBJ_SENTINEL means load, else store // can return MP_OBJ_NULL if op not supported - mp_fun_1_t getiter; + mp_fun_1_t getiter; // corresponds to __iter__ special method mp_fun_1_t iternext; // may return MP_OBJ_STOP_ITERATION as an optimisation instead of raising StopIteration() (with no args) mp_buffer_p_t buffer_p; |