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

Method __exit__

IPython/utils/contexts.py:55–60  ·  view source on GitHub ↗
(self, *exc_info)

Source from the content-addressed store, hash-verified

53 self.to_update = to_update
54
55 def __exit__(self, *exc_info):
56 d = self.dictionary
57
58 for k in self.to_delete:
59 d.pop(k, None)
60 d.update(self.to_update)
61
62
63class NoOpContext(object):

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected