A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-December/059251.html below:

[Python-Dev] a quit that actually quits

[Python-Dev] a quit that actually quits [Python-Dev] a quit that actually quitsBrett 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4