From 6a6f9b58d132c83e4ec60503cf5498f9f0d87202 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 27 Jun 2009 09:02:45 +0200 Subject: [PATCH] fix extended iterable unpacking in Py3.1 --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2