projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
057375c
)
fix tuple unpacking bug
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 17 Jan 2008 21:55:27 +0000
(22:55 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 17 Jan 2008 21:55:27 +0000
(22:55 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index f571cc03426ea11db53091c69622504633f8029c..116c0a37d3a4570fa67bf237a6dce9f5aa50e4ee 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-2062,12
+2062,12
@@
class SequenceNode(ExprNode):
rhs.py_result(),
rhs.py_result(),
len(self.args)))
+ code.putln("PyObject* tuple = %s;" % rhs.py_result())
for i in range(len(self.args)):
item = self.unpacked_items[i]
code.putln(
- "%s = PyTuple_GET_ITEM(
%s
, %s);" % (
+ "%s = PyTuple_GET_ITEM(
tuple
, %s);" % (
item.result_code,
- rhs.py_result(),
i))
code.put_incref(item.result_code, item.ctype())
value_node = self.coerced_unpacked_items[i]