It sounds to me like what is being proposed amounts to essentially "promote sys.exit to a builtin". So why not do that? I see two options. Either: (a) Simply let __builtins__.exit = sys.exit. Then we get: >>> exit <built-in function exit> which may be enough of a clue that you type "exit()" to exit. (b) If more handholding seems like a good idea, then: class ExitHatch: def __call__(self): sys.exit() def __repr__(self): return '<Type "exit()" to exit Python.>' __builtins__.exit = __builtins__.quit = ExitHatch() -- ?!ng
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4