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

Class ExitAutocall

IPython/core/autocall.py:51–57  ·  view source on GitHub ↗

An autocallable object which will be added to the user namespace so that exit, exit(), quit or quit() are all valid ways to close the shell.

Source from the content-addressed store, hash-verified

49
50
51class ExitAutocall(IPyAutocall):
52 """An autocallable object which will be added to the user namespace so that
53 exit, exit(), quit or quit() are all valid ways to close the shell."""
54 rewrite = False
55
56 def __call__(self):
57 self._ip.ask_exit()
58
59class ZMQExitAutocall(ExitAutocall):
60 """Exit IPython. Autocallable, so it needn't be explicitly called.

Callers 1

_exiter_defaultMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected