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

Nick Coghlan report at bugs.python.org
Sun Jun 28 03:11:08 EDT 2020


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Belatedly clearing the issue assignment here - while I do still sometimes ponder this problem, I haven't been actively working on it since the 2017 core sprint where Greg & I made our last serious attempt at trying to improve the situation.

Mark's PR at https://github.com/python/cpython/pull/18334 looks very promising to me, though - my main request was just to bring over the tests I wrote at the 2017 core dev sprints, and confirm that the revised eval breaker logic solves the issue.

----------
assignee: ncoghlan -> 

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


More information about the Python-bugs-list mailing list