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