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

[Python-Dev] a quit that actually quits

[Python-Dev] a quit that actually quits [Python-Dev] a quit that actually quitsFredrik Lundh fredrik at pythonware.com
Tue Dec 27 16:39:59 CET 2005
Ronald Oussoren wrote:

> Why must quit and exit be so special in the first place? They could
> be plain functions, or even something like::
>
> class _QuitOrExit:
> def __init__(self, name):
> self.name = name
>
> def __repr__(self):
> return "Use %(name)s() to exit."%(self.__dict__)
>
> def __call__(self):
> raise SystemExit
>
> quit = _QuitOrExit("quit")
> exit = _QuitOrExit("exit")

but now we're back to today's situation:

    >>> quit
    'Use Ctrl-Z plus Return to exit.'

which violates the basic "if you know what I mean, why the /!"&/&!//%ยค
don't you do what I say" usability rule.

</F>



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