MCPcopy Create free account
hub / github.com/bpython/bpython / SchrodingersDict

Class SchrodingersDict

bpython/test/test_simpleeval.py:57–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 simple_eval("a[1]", {"a": TrickyDict()})
56
57 class SchrodingersDict(dict):
58 def __getattribute__(inner_self, attr):
59 self.fail("doing attribute lookup might have side effects")
60
61 with self.assertRaises(ValueError):
62 simple_eval("a[1]", {"a": SchrodingersDict()})

Callers 1

Calls

no outgoing calls

Tested by 1