Author scotchka
Recipients ppperry, scotchka, serhiy.storchaka, xtreak
Date 2019-01-17.01:37:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547689080.03.0.039314374108.issue34782@roundup.psfhosted.org>
In-reply-to
Content
Hmm, the example works for me (Python 3.6.5):

>>> import pdb
>>> class FakeContainer:
...     def __getitem__(self, key):
...             raise KeyError(key)
...
>>> pdb.run("eval('1+1',{},FakeContainer())")
> <string>(1)<module>()
(Pdb) c
>>>

As for exec/eval accepting an incomplete mapping, that strikes me as a less than thorough checking on the part of exec/eval, perhaps for performance reasons(?)
History
Date User Action Args
2019-01-17 01:38:02scotchkasetrecipients: + scotchka, serhiy.storchaka, ppperry, xtreak
2019-01-17 01:38:00scotchkasetmessageid: <1547689080.03.0.039314374108.issue34782@roundup.psfhosted.org>
2019-01-17 01:38:00scotchkalinkissue34782 messages
2019-01-17 01:37:59scotchkacreate