[issue34782] Pdb crashes when code is executed in a mapping that does not define `__contains__`

ppperry report at bugs.python.org
Wed Jan 16 15:05:51 EST 2019


ppperry <mapreader at olum.org> added the comment:

The thing is, though, that the same error occurs if a larger code being debugged calls `exec` or `eval` with such a mapping (`pdb.run("eval('1+1',{},FakeContainer())" also crashes with the same error), and the test suite contains code that evals other code in an incomplete mapping (test_var_annot_custom_maps in test_grammar)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34782>
_______________________________________


More information about the Python-bugs-list mailing list