Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
ccfc9c51
Commit
ccfc9c51
authored
Nov 02, 2013
by
Damien
Browse files
Py runtime: list.append returns None.
parent
4ebb32fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
ccfc9c51
...
@@ -453,7 +453,7 @@ py_obj_t rt_list_append(py_obj_t self_in, py_obj_t arg) {
...
@@ -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
=
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
;
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
)
{
py_obj_t
rt_gen_instance_next
(
py_obj_t
self_in
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment