Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __enter__
Method
__enter__
Lib/unittest/mock.py:1935–1938 ·
view source on GitHub ↗
Patch the dict.
(self)
Source
from the content-addressed store, hash-verified
1933
1934
1935
def
__enter__(self):
1936
""
"Patch the dict."
""
1937
self._patch_dict()
1938
return
self.in_dict
1939
1940
1941
def
_patch_dict(self):
Callers
1
start
Method · 0.95
Calls
1
_patch_dict
Method · 0.95
Tested by
no test coverage detected