5 ms·
>>> class ExitFunc: ... def __call__(self): __builtins__.exit() ... def __repr__(self): return "That's how!" ... >>> exit = ExitFunc() >>> exit
by ii 17y ago
>>> class ExitFunc:
... def __call__(self): __builtins__.exit()
... def __repr__(self): return "That's how!"
...
>>> exit = ExitFunc()
>>> exit
That's how!
>>> exit()