Skip to content
Snippets Groups Projects
Commit ccfc9c51 authored by Damien's avatar Damien
Browse files

Py runtime: list.append returns None.

parent 4ebb32fb
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment