python assignment

Skip Montanaro skip at pobox.com
Wed Jul 23 11:40:11 EDT 2003


    >> > The examples you gave showed that integers share identity with other
    >> > integers of the same value, while floats do not.

    >> I believe that's only true for small integers, isn't it?

    Peter> Google finds "LOADI - a fast load instruction for small positive
    Peter> integers (those referenced by the small_ints array in
    Peter> intobject.c)"

LOADI was an instruction I implemented a few years ago when investigating
bytecode optimization.  It was never added to the Python virtual machine
(ceval.c).

Skip





More information about the Python-list mailing list