Everyone always complains about exit not exiting in Python, but I dunno what they're talking about. It's super easy
$ python3
>>> exit.__class__.__repr__ = lambda self: exit(0)
>>> exit
$

I want!!
⬅️ this mark
🍷white
and Taste 🦆11
require
(Avatar by @texture, CD-ROM Journal button by @candiedreptile)
Everyone always complains about exit not exiting in Python, but I dunno what they're talking about. It's super easy
$ python3
>>> exit.__class__.__repr__ = lambda self: exit(0)
>>> exit
$
I wonder if you could do some inspect garbage to look at the call stack and see if it was typed directly into the repl on its own
IPython has all their own custom prompt stuff I would have assumed they just added special cases for quit/exit. But maybe not.
Someone pointed out that's also how a Python port of Adventure works. https://pypi.org/project/adventure/