From: Stefan Behnel Date: Sat, 27 Jun 2009 07:02:45 +0000 (+0200) Subject: fix extended iterable unpacking in Py3.1 X-Git-Tag: 0.12.alpha0~284^2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6a6f9b58d132c83e4ec60503cf5498f9f0d87202;p=cython.git fix extended iterable unpacking in Py3.1 --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index abc122d7..cc019e81 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -3177,7 +3177,7 @@ class SequenceNode(ExprNode): arg.py_result(), target_list, target_list)) # 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()) coerced_arg.generate_evaluation_code(code)