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

Method __init__

Lib/test/test_pprint.py:706–707  ·  view source on GitHub ↗
(self, keys=None)

Source from the content-addressed store, hash-verified

704 """Test that mapping ABC views use their ._mapping's __repr__."""
705 class MyMapping(Mapping):
706 def __init__(self, keys=None):
707 self._keys = {} if keys is None else dict.fromkeys(keys)
708
709 def __getitem__(self, item):
710 return self._keys[item]

Callers

nothing calls this directly

Calls 1

fromkeysMethod · 0.45

Tested by

no test coverage detected