[issue24316] Fix types.coroutine to accept objects from Cython
Stefan Behnel
report at bugs.python.org
Fri May 29 19:26:16 CEST 2015
Stefan Behnel added the comment:
One failing test in "test_coroutines": test_func_5. The reason is that the GeneratorWrapper is not iterable (and there is no reason it shouldn't be, given that it wraps a Generator). That was my fault, I had already added an __iter__ method but didn't copy it in my previous message. Adding it as follows fixes the test for me:
def __iter__(self):
return self.__wrapped__
Alternatively, "__iter__ = __await__" would do the same.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24316>
_______________________________________
More information about the Python-bugs-list
mailing list