This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients xdegaye
Date 2018-05-10.20:33:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525984394.0.0.682650639539.issue33458@psf.upfronthosting.co.za>
In-reply-to
Content
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:
History
Date User Action Args
2018-05-10 20:33:14xdegayesetrecipients: + xdegaye
2018-05-10 20:33:14xdegayesetmessageid: <1525984394.0.0.682650639539.issue33458@psf.upfronthosting.co.za>
2018-05-10 20:33:13xdegayelinkissue33458 messages
2018-05-10 20:33:13xdegayecreate