[issue40986] Async generators are not garbage collected

2020-06-24 Thread Vytautas Liuolia
Change by Vytautas Liuolia : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40986] Async generators are not garbage collected

2020-06-24 Thread Vytautas Liuolia
Vytautas Liuolia added the comment: I've now skimmed through the relevant Trio issue https://github.com/python-trio/trio/issues/265 and the currently deferred https://www.python.org/dev/peps/pep-0533/ and, as I understand, the issue is not trivial and subject to subtle edge cases. Ge

[issue40986] Async generators are not garbage collected

2020-06-15 Thread Vytautas Liuolia
Vytautas Liuolia added the comment: Just for the heck of it, I've tried running my test case with Trio (FWIW, I've never used trio before), and it does seem to work as expected. -- Added file: https://bugs.python.org/file49233/te

[issue40986] Async generators are not garbage collected

2020-06-15 Thread Vytautas Liuolia
Change by Vytautas Liuolia : Added file: https://bugs.python.org/file49232/test_sync.py ___ Python tracker <https://bugs.python.org/issue40986> ___ ___ Python-bugs-list m

[issue40986] Async generators are not garbage collected

2020-06-15 Thread Vytautas Liuolia
New submission from Vytautas Liuolia : Hello! I am having issues with asynchronous generators not being garbage collected at least until the current loop has completed. In the attached test case (test.py), one starts iterating over an asynchronous generator, then breaks and returns the first