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

[Python-Dev] Making None a keyword

[Python-Dev] Making None a keyword [Python-Dev] Making None a keywordGuido van Rossum guido@python.org
Fri, 26 Apr 2002 12:29:18 -0400
>     Patrick> ... what about something like:
> 
>     >>> None.__class__.__base__
>     <type 'object'>
> 
>     Patrick> Or does this not apply because None is at the front?
> 
> I suspect it does apply.
> 
> I doubt it's used much, but what would happen to types.NoneType?  If
> None is a keyword, how will you generate it, or will it disappear
> when that happens?

Nothing would change.  None would be a literal keyword, but its value
in an expression would be the same as before, so None.__class__ would
work.  Compare "foo".__class__.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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