MCPcopy Index your code
hub / github.com/python/cpython / _push_exit_callback

Method _push_exit_callback

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

Source from the content-addressed store, hash-verified

547 return callback # Allow use as a decorator
548
549 def _push_exit_callback(self, callback, is_sync=True):
550 self._exit_callbacks.append((is_sync, callback))
551
552
553# Inspired by discussions on http://bugs.python.org/issue13585

Callers 6

pushMethod · 0.95
enter_contextMethod · 0.95
callbackMethod · 0.95
enter_async_contextMethod · 0.80
push_async_exitMethod · 0.80
push_async_callbackMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected