[issue32810] Expose ags_gen and agt_gen in asynchronous generators
Joshua Oreman
report at bugs.python.org
Tue Feb 12 18:29:16 EST 2019
Joshua Oreman <oremanj at gmail.com> added the comment:
I also ran into this. My workaround was to use gc.get_referents() on the async_generator_asend object, which returns a one-element list containing the async generator object. I don't know if this is guaranteed or just happened to work in the cases I was using it, but it might be good enough?
----------
nosy: +Joshua Oreman
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32810>
_______________________________________
More information about the Python-bugs-list
mailing list