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

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