Commit eca827bd authored by Stefan Behnel's avatar Stefan Behnel

slightly better PyPy code in iterable unpacking

parent 519c1fff
......@@ -5135,7 +5135,7 @@ class SequenceNode(ExprNode):
# resize the list the hard way
code.putln("((PyVarObject*)%s)->ob_size--;" % target_list)
code.putln('#else')
code.putln("%s = PySequence_GetItem(%s, %s-%d); " % (
code.putln("%s = PySequence_ITEM(%s, %s-%d); " % (
item.py_result(), target_list, length_temp, i+1))
code.putln('#endif')
code.put_gotref(item.py_result())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment