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

Method _factory

Lib/test/test_defaultdict.py:133–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 def __init__(self):
132 self.default_factory = self._factory
133 def _factory(self):
134 return []
135 d = sub()
136 self.assertRegex(repr(d),
137 r"sub\(<bound method .*sub\._factory "

Callers 15

__getitem__Method · 0.80
get_messageMethod · 0.80
_new_messageMethod · 0.80
setUpMethod · 0.80
test_getMethod · 0.80
_test_flush_or_closeMethod · 0.80
test_initialize_newMethod · 0.80
test_folderMethod · 0.80
test_open_close_openMethod · 0.80
test_add_and_closeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected