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

Class F

Lib/test/test_userdict.py:223–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 else:
222 self.fail("e[42] didn't raise RuntimeError")
223 class F(collections.UserDict):
224 def __init__(self):
225 # An instance variable __missing__ should have no effect
226 self.__missing__ = lambda key: None
227 collections.UserDict.__init__(self)
228 f = F()
229 try:
230 f[42]

Callers 1

test_missingMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_missingMethod · 0.56