slightly better PyPy code in iterable unpacking
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 30 Jun 2012 08:06:50 +0000 (10:06 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 30 Jun 2012 08:06:50 +0000 (10:06 +0200)
Cython/Compiler/ExprNodes.py

index 46c19ec..a73d86b 100755 (executable)
@@ -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())