Post #381572
2026-02-24 01:29 UTC
@floyd@chaos.social I got curious -- `exit` is _not_ a statement in python, but there's a default hack[1] that makes it work that way in the REPL:
❯ python3 -c "exit"
❯ python3 -Sc "exit"
Traceback (most recent call last):
File "", line 1, in
exit
NameError: name 'exit' is not defined
[1]:https://devdocs.io/python~3.10/library/constants#exit
Replies (0)
No replies.