[issue24004] avoid explicit generator type check in asyncio

Stefan Behnel report at bugs.python.org
Sat May 30 20:18:52 CEST 2015


Stefan Behnel added the comment:

Hmm, I just noticed that this only started failing when I disabled the asyncio module patching for 3.5beta1+, assuming that it now all works. A side effect of that was that also the inspect module is no longer patched into returning True from isgenerator() for Cython generators. While there might be code that fails when it tries to inspect Cython generators as Python generators (as the first don't have byte code), I think it's still the easiest fix to simply keep the inspect patching. That would then trigger the right code path here without changes in asyncio.

----------

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


More information about the Python-bugs-list mailing list