Guide to the python interp. source?
Tim Gahnström /Bladerman
tim at bladerman.com
Sat Jul 27 09:19:46 EDT 2002
"Neil Schemenauer" <nas at python.ca>
> Tim Gahnström /Bladerman wrote:
> > Is there a guide or a recomended way to "get to know" the source code to
the
> > python interpreter?
>
> Not that I know of. Here are a few pointers:
>
> * Python/ceval.c:eval_frame is the heart of the virtual machine. This
> is were most of the work is done. Use the 'dis' module to
There I guess I will spend most of my coming days :-)
> disassemble bytecode to get an idea of how the VM works. For
> example:
That was interesting, definitley a feature I must look at a little.
> * The data structures in Include/object.h are key. You should
> study PyObject, PyVarObject and PyTypeObject.
Maybe there I can find a cheap way to make everything mutable.
>
> * Most builtin objects live in the 'Objects' directory. There is
> * The parser lives in 'Parser' and the compiler is in 'Python'. I
Thanks alot. It is fasignating how many people wanted to help out!
Tim
More information about the Python-list
mailing list