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

[Python-Dev] Making None a keyword

[Python-Dev] Making None a keyword [Python-Dev] Making None a keywordFred L. Drake, Jr. fdrake@acm.org
Fri, 26 Apr 2002 01:16:38 -0400
Jeremy Hylton writes:
 > Does the parser prevent assignment to None?  Or does the compiler need
 > to check for the use of None in an assignment?

Inside functions, you don't even need that.  You just need to use
LOAD_CONST (or whatever its called now), since None is entry 0 in the
constants table, used by the implied "return None" when control drops
off the end.  Doing this in function buys most of the performance.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation




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