Xavier de Gaye <xdeg...@gmail.com> added the comment: The following patch fixes the problem when applied applied on top of PR 6730:
diff --git a/Lib/bdb.py b/Lib/bdb.py index c6a10359ac..07231ec588 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -582,7 +582,7 @@ class Bdb: cmd = compile(cmd, "<string>", "exec") sys.settrace(self.trace_dispatch) try: - exec(cmd, globals, locals) + exec(cmd, dict(globals), dict(locals)) except BdbQuit: pass finally: ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33458> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com