From: Stefan Behnel Date: Fri, 10 Dec 2010 22:57:30 +0000 (+0100) Subject: no need to own an argument passed into a Python function X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9f38fadf149f8d28cf932fe8ecf7f4b28c0d0fa;p=cython.git no need to own an argument passed into a Python function --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f66d6abd..1c3939f7 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -8347,13 +8347,7 @@ static CYTHON_INLINE PyObject *__CyGenerator_SendEx(struct __CyGenerator *self, static PyObject *__CyGenerator_Next(PyObject *self) { - struct __CyGenerator *generator = (struct __CyGenerator *) self; - PyObject *retval; - - Py_INCREF(Py_None); - retval = __CyGenerator_SendEx(generator, Py_None); - Py_DECREF(Py_None); - return retval; + return __CyGenerator_SendEx((struct __CyGenerator *) self, Py_None); } static PyObject *__CyGenerator_Send(PyObject *self, PyObject *value)