Commit 6a6f9b58 authored by Stefan Behnel's avatar Stefan Behnel

fix extended iterable unpacking in Py3.1

parent 0c2e63ad
...@@ -3177,7 +3177,7 @@ class SequenceNode(ExprNode): ...@@ -3177,7 +3177,7 @@ class SequenceNode(ExprNode):
arg.py_result(), arg.py_result(),
target_list, target_list)) target_list, target_list))
# resize the list the hard way # resize the list the hard way
code.putln("((PyListObject*)%s)->ob_size--;" % target_list) code.putln("((PyVarObject*)%s)->ob_size--;" % target_list)
code.put_gotref(arg.py_result()) code.put_gotref(arg.py_result())
coerced_arg.generate_evaluation_code(code) coerced_arg.generate_evaluation_code(code)
......
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