MCPcopy Index your code
hub / github.com/python/cpython / E

Class E

Lib/test/test_userdict.py:213–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 self.assertNotIn(2, d.keys())
212 self.assertEqual(d[2], 42)
213 class E(collections.UserDict):
214 def __missing__(self, key):
215 raise RuntimeError(key)
216 e = E()
217 try:
218 e[42]

Callers 1

test_missingMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_missingMethod · 0.56