Commit 6bb38bc6 authored by Stefan Behnel's avatar Stefan Behnel

speed up FetchStopIterationValue() by moving slow code out of the way

parent 2cff320f
......@@ -446,7 +446,7 @@ static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue) {
if (!ev) {
Py_INCREF(Py_None);
ev = Py_None;
} else if (PyTuple_Check(ev)) {
} else if (unlikely(PyTuple_Check(ev))) {
// however, if it's a tuple, it is interpreted as separate constructor arguments (surprise!)
if (PyTuple_GET_SIZE(ev) >= 1) {
PyObject *value;
......
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