Re:You can't do that because I hate you
by dale_glass on Friday December 29, 2023 @04:31AM
(#38803167)
Also a bit funny:
>>> def get_function():
... return exit
...
>>> a = get_function()
>>> a
Use exit() or Ctrl-D (i.e. EOF) to exit
IMO if the REPL wanted a friendly feature like this, it should be a generic REPL feature, not a hack applied to the function exit.