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

Mark Shannon report at bugs.python.org
Wed Mar 31 12:56:56 EDT 2021


Mark Shannon <mark at hotpy.org> added the comment:

The bytecode instruction set has changed a lot since 3.6, so I think a backport would be impractical.

3.6 is in security fix only mode, so you'd need to take this up with Red Hat.

----------

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


More information about the Python-bugs-list mailing list