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/023606.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
Thu, 25 Apr 2002 23:53:44 -0400
> I think it's a small project.  We've got a new node type in the
> grammar -- None -- and we'll need a new opcode -- LOAD_NONE.  The
> compiler just needs to generate a LOAD_NONE for every None node.
> 
> Does the parser prevent assignment to None?  Or does the compiler need
> to check for the use of None in an assignment?

The compiler needs to check.  It's just like assigning to a literal:
the parser has no power to prevent this, so the compiler has to act as
a safeguard.

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