MCPcopy 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_modulesFunction · 0.45

Calls 2

uncacheFunction · 0.85
keysMethod · 0.45

Tested by 1