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/059296.html below:

[Python-Dev] a quit that actually quits

[Python-Dev] a quit that actually quits [Python-Dev] a quit that actually quitsScott David Daniels Scott.Daniels at Acm.Org
Thu Dec 29 22:12:11 CET 2005
Aahz wrote:
> On Wed, Dec 28, 2005, Brett Cannon wrote:
>> On 12/28/05, Aahz <aahz at pythoncraft.com> wrote:
>>> Here's yet a different take on this: .. change the startup message...
>>>     Type "help", "copyright", "credits" or "license" for more information.
>>> Let's add another line that says
>>>     Type "quit()" to exit
>>> ...

Or, perhaps:
     class _Quitter(str):
         def __call__(self): raise SystemExit
     quit = _Quitter('The quit command.  Type "quit()" to exit')
     exit = _Quitter('The exit command.  Type "exit()" to exit')

--Scott David Daniels
Scott.Daniels at Acm.Org

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