diff options
author | Damien <damien.p.george@gmail.com> | 2013-11-02 15:10:37 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-11-02 15:10:37 +0000 |
commit | ccfc9c51ba6e0d3e54d109d9f482595e2eac3b33 (patch) | |
tree | 5f158c030c7d8e071e8ab7eaba37fe74bd2ac2a8 | |
parent | 4ebb32fb952c02eb554311cbbd0acac7e858570b (diff) | |
download | micropython-ccfc9c51ba6e0d3e54d109d9f482595e2eac3b33.tar.gz micropython-ccfc9c51ba6e0d3e54d109d9f482595e2eac3b33.zip |
Py runtime: list.append returns None.
-rw-r--r-- | py/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index b506c6a549..d97763adf0 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -453,7 +453,7 @@ py_obj_t rt_list_append(py_obj_t self_in, py_obj_t arg) { self->u_tuple_list.items = m_renew(py_obj_t, self->u_tuple_list.items, self->u_tuple_list.alloc); } self->u_tuple_list.items[self->u_tuple_list.len++] = arg; - return arg; + return py_const_none; // return None, as per CPython } py_obj_t rt_gen_instance_next(py_obj_t self_in) { |