Commit 2cff320f authored by Stefan Behnel's avatar Stefan Behnel

use correct (and originally intended) optimisation in CPython instead of *disabling* it in CPython

parent fd9a86c2
...@@ -450,7 +450,7 @@ static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue) { ...@@ -450,7 +450,7 @@ static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue) {
// however, if it's a tuple, it is interpreted as separate constructor arguments (surprise!) // however, if it's a tuple, it is interpreted as separate constructor arguments (surprise!)
if (PyTuple_GET_SIZE(ev) >= 1) { if (PyTuple_GET_SIZE(ev) >= 1) {
PyObject *value; PyObject *value;
#if CYTHON_COMPILING_IN_CPYTHON #if !CYTHON_COMPILING_IN_CPYTHON
value = PySequence_ITEM(ev, 0); value = PySequence_ITEM(ev, 0);
#else #else
value = PyTuple_GET_ITEM(ev, 0); value = PyTuple_GET_ITEM(ev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment