Message333812
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(?) |
|
Date |
User |
Action |
Args |
2019-01-17 01:38:02 | scotchka | set | recipients:
+ scotchka, serhiy.storchaka, ppperry, xtreak |
2019-01-17 01:38:00 | scotchka | set | messageid: <1547689080.03.0.039314374108.issue34782@roundup.psfhosted.org> |
2019-01-17 01:38:00 | scotchka | link | issue34782 messages |
2019-01-17 01:37:59 | scotchka | create | |
|