By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,571 Members | 967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,571 IT Pros & Developers. It's quick & easy.

CPython VM internals - Wiki page

P: n/a
Various people have asked on c.l.p about documentation of CPython's
virtual machine internals. The usual answers have been to see the dis
module doc for bytecodes and 'read the code' for more. Jakob Sievers
did so and posted his notes, with additions from Martin v. Lwis, as

http://wiki.python.org/moin/CPythonVmInternals

Jul 22 '08 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Terry Reedy wrote:
Various people have asked on c.l.p about documentation of CPython's
virtual machine internals. The usual answers have been to see the dis
module doc for bytecodes and 'read the code' for more. Jakob Sievers
did so and posted his notes, with additions from Martin v. Lwis, as

http://wiki.python.org/moin/CPythonVmInternals
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.

John Nagle
Jul 22 '08 #2

P: n/a
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
Jul 22 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.