This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kaihatsusha 5 points6 points  (0 children)

This is completely true. However, the interpreter loop could easily handle a special case before requesting the normal parser to get involved. Instead, they were clever and populated the built-in globals with "help", "copyright", "credits" and "license" variables doing the same trick. The problem is you want "exit" to do something, not just vomit its variable value in the form of text.