[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

Nir Soffer report at bugs.python.org
Tue Feb 9 07:56:59 EST 2021


Nir Soffer <nirsof at gmail.com> added the comment:

Does https://github.com/python/cpython/pull/1799 solve this issue
for synchronous with?

    with closing(this), closing(that):

If it does, can we backport this fix to python 3.6?

3.6 is used as system python for RHEL/Centos 8, will be used for at
least 5 years or so.

----------
nosy: +nirs

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


More information about the Python-bugs-list mailing list