[Cython] segfault in 'async def' coroutines

2016-05-15 Thread Yury Selivanov
Hi, Under some circumstances, in asyncio code that runs in uvloop [1], cython code segfaults in cython/Cython/Utility/Coroutine.c: static PyObject * __Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self) { Py_INCREF(self->gi_qualname); return self->gi_qualname; } "self->gi_

[Cython] async def coroutines miss __module__

2016-05-15 Thread Yury Selivanov
In CPython: >>> async def foo(): pass >>> foo.__module__ '__main__' In Cython, async def coroutines lack __module__ attribute Yury ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] segfault in 'async def' coroutines

2016-05-15 Thread Yury Selivanov
I've just discovered that same thing has to be fixed for __name__. On 2016-05-14 5:31 PM, Yury Selivanov wrote: Hi, Under some circumstances, in asyncio code that runs in uvloop [1], cython code segfaults in cython/Cython/Utility/Coroutine.c: static PyObject * __Pyx_Coroutine_get_qualname