MCPcopy Index your code
hub / github.com/RustPython/RustPython / _push_exit_callback

Method _push_exit_callback

Lib/contextlib.py:552–553  ·  view source on GitHub ↗
(self, callback, is_sync=True)

Source from the content-addressed store, hash-verified

550 self._push_exit_callback(_exit_wrapper, True)
551
552 def _push_exit_callback(self, callback, is_sync=True):
553 self._exit_callbacks.append((is_sync, callback))
554
555
556# Inspired by discussions on http://bugs.python.org/issue13585

Callers 6

pushMethod · 0.95
callbackMethod · 0.95
_push_cm_exitMethod · 0.95
push_async_exitMethod · 0.80
push_async_callbackMethod · 0.80
_push_async_cm_exitMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected