[issue40213] contextlib.aclosing()

John Belmonte report at bugs.python.org
Fri Jul 3 04:00:20 EDT 2020


John Belmonte <john at neggie.net> added the comment:

highlighting from PEP 533:

> Async generators cannot do cleanup at all without some mechanism for deterministic cleanup that people will actually use, and async generators are particularly likely to hold resources like file descriptors.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40213>
_______________________________________


More information about the Python-bugs-list mailing list