Thread context
2 posts in path
Parent
@floyd@chaos.social
Open
on chaos.social
Open ancestor post
Current reply
@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
View full thread on vmst.io
0
0
0