New submission from Serhiy Storchaka <>:

The proposed PR fixes jumping from "with" block. Currently the exit function is 
left on the stack.

This fix is for 3.8 only. 3.7 and older versions are affected by this bug, but 
since the code was significantly changed in 3.8, I'm not sure it will be so 
easy to fix it in older versions.

components: Interpreter Core
messages: 313426
nosy: pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix jumping out of "with" block
type: crash
versions: Python 3.8

Python tracker <>
Python-bugs-list mailing list

Reply via email to