CPython VM internals - Wiki page

"Martin v. Löwis" martin at v.loewis.de
Tue Jul 22 20:52:08 CEST 2008


>     That's interesting. It's dumber than I thought.  All temporaries
> on the stack are "boxed" as PyObjects.  That's simple and portable,
> but slow.

Not only that - Python does not ever have the concept of unboxed
values, except for local variables in the C implementations of
arithmetic operations and system calls.

Using true objects is slow only if allocation and deallocation is
slow, which it fortunately isn't.

Regards,
Martin



More information about the Python-list mailing list