[Python-Dev] a quit that actually quits (original) (raw)

Brett Cannon bcannon at gmail.com
Thu Dec 29 06:06:46 CET 2005


On 12/28/05, Aahz <aahz at pythoncraft.com> wrote:

Here's yet a different take on this: why not simply change the startup message? Whether we choose "quit" or "exit", someone will get it wrong unless there's an alias. Changing the message is free. Currently we have

Type "help", "copyright", "credits" or "license" for more information. Let's add another line that says Type "quit()" to exit Defining it as "def quit(): raise SystemExit" should be fine. --

Just because people don't read unless it it thrown in their face. =) But that is still nice and simple and won't hurt. I would still suggest using a class so that the repr can give a useful message, though.

-Brett



More information about the Python-Dev mailing list