projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
519c1ff
)
slightly better PyPy code in iterable unpacking
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 30 Jun 2012 08:06:50 +0000
(10:06 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 30 Jun 2012 08:06:50 +0000
(10:06 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
46c19ec
..
a73d86b
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-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())