Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __enter__
Method
__enter__
Lib/test/test_with.py:108–110 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
106
self.exit_args = None
107
108
def
__enter__(self):
109
self.enter_called = True
110
return
Nested.__enter__(self)
111
112
def
__exit__(self, *exc_info):
113
self.exit_called = True
Callers
nothing calls this directly
Calls
1
__enter__
Method · 0.45
Tested by
no test coverage detected