[issue24316] Fix types.coroutine to accept objects from Cython

Stefan Behnel report at bugs.python.org
Fri May 29 22:03:24 CEST 2015


Stefan Behnel added the comment:

Ok, now the problem with *this* patch is that __iter__ and __await__ are special methods that are being looked up on the type, not the instance. Similarly __next__, I think, as it also has its own (type) slot. But I think you're right that __next__ is also needed here.

I'm attaching a patch that works for me.

----------
Added file: http://bugs.python.org/file39556/types_coroutine.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24316>
_______________________________________


More information about the Python-bugs-list mailing list