[Python-Dev] Making None a keyword (original) (raw)

Gustavo Niemeyer niemeyer@conectiva.com
Fri, 26 Apr 2002 11:33:51 -0300


Hi Fred!

Regarding changing LOADCONST 0 to LOADNONE, yes. What's more interesting are the changes of LOADGLOBAL 'None' to one of LOADCONST 0 or LOADNONE. That could be changed to use LOADCONST 0 now, without adding a new bytecode, and we could get a better idea of how much performance it actually buys us in practice, since we get rid of two dict lookups (globals & builtins).

It's clear now.. thanks!

That doesn't address the deprecation cycle, but it would be nice to see what the change would buy us.

I'm going to work on it, and come back with some results.

-- Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]