Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _create_exit_wrapper
Method
_create_exit_wrapper
Lib/contextlib.py:476–477 ·
view source on GitHub ↗
(cm, cm_exit)
Source
from the content-addressed store, hash-verified
474
475
@staticmethod
476
def
_create_exit_wrapper(cm, cm_exit):
477
return
MethodType(cm_exit, cm)
478
479
@staticmethod
480
def
_create_cb_wrapper(callback, /, *args, **kwds):
Callers
1
_push_cm_exit
Method · 0.95
Calls
1
MethodType
Function · 0.90
Tested by
no test coverage detected