MCPcopy Create free account
hub / github.com/ipython/ipython / __exit__

Method __exit__

IPython/core/builtin_trap.py:46–51  ·  view source on GitHub ↗
(self, type, value, traceback)

Source from the content-addressed store, hash-verified

44 return self
45
46 def __exit__(self, type, value, traceback):
47 if self._nested_level == 1:
48 self.deactivate()
49 self._nested_level -= 1
50 # Returning False will cause exceptions to propagate
51 return False
52
53 def add_builtin(self, key, value):
54 """Add a builtin and save the original."""

Callers

nothing calls this directly

Calls 1

deactivateMethod · 0.95

Tested by

no test coverage detected