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/2002-April/023669.html below:

[Python-Dev] Making None a keyword

[Python-Dev] Making None a keyword [Python-Dev] Making None a keywordMartin v. Loewis martin@v.loewis.de
26 Apr 2002 20:17:15 +0200
Skip Montanaro <skip@pobox.com> writes:

> Use of the term "keyword" was causing my sleep-deprived brain to think it
> couldn't be used in expressions.  Obviously, that's not the case.  All the
> current keywords in the language either identify statements statements (def,
> print, continue) or operators (or, and, in).  Elevating "None" to keyword
> status would create a third type keyword.  Maybe it should be referred to as
> a "reserved identifier" or something like that.

I'd put it into the class "literals": it is indeed a literal
identifying the singleton NoneType instance.

Of course, it will be the only literal that consists only of letters
(it is *not* the only literal starting with a letter, nor the only
literal ending with one).

Regards,
Martin





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