[Python-Dev] Re: native code compiler? (or, OCaml vs. Python) (original) (raw)

Skip Montanaro skip@pobox.com
Mon, 3 Feb 2003 14:56:56 -0600


Guido> I was thinking of adding appropriate new opcodes for a few
Guido> builtins that are called a lot, like len.  This would be
Guido> implemented using something like this:

Guido>              case BUILTIN_LEN:
...

Would you special case those calls so that, in effect, builtin.len couldn't be overridden by a "len" object in the globals or locals?

Skip