Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment: Interesting, why locals are not cleared when an exception leaves a frame? ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue38530> _______________________________________