A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-December/059185.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
Wed Dec 28 13:37:19 CET 2005
Michael Hudson wrote:

> > that would turn exit and quit into reserved keywords.
>
> In what sense?  Not in the sense of "things in single quotes in
> Grammar"...

no, but in the sense of "names that can no longer be used in code"

    >>> def exit():
    ...      print "bye"

    >>> # what is it?
    >>> exit

    $ oops!

the whole nameerror thing is there to avoid problems if you create
your own exit variables/functions/classes/modules.

</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