Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __enter__
Method
__enter__
Lib/test/test_importlib/util.py:257–260 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
255
return
self.modules[name]
256
257
def
__enter__(self):
258
self._uncache = uncache(*self.modules.keys())
259
self._uncache.__enter__()
260
return
self
261
262
def
__exit__(self, *exc_info):
263
self._uncache.__exit__(None, None, None)
Callers
2
create_modules
Function · 0.45
test_entered_path_does_not_keep_open
Method · 0.45
Calls
2
uncache
Function · 0.85
keys
Method · 0.45
Tested by
1
test_entered_path_does_not_keep_open
Method · 0.36