Re: [Python-Dev] Python VM

2008-07-22 Thread Jakob Sievers
I added a page to wiki.python.org: http://wiki.python.org/moin/CPythonVmInternals This incorporates most of Martin v. Löwis's additions (except for a few bits which I need to look into more). In any case, thanks for the feedback! Cheers, -jakob ___ Py

Re: [Python-Dev] Python VM

2008-07-21 Thread Thomas Lee
Martin v. Löwis wrote: Jakob, This looks fairly correct. A few comments below. Control Flow The calling sequence is: main() (in python.c) -> Py_Main() (main.c) -> PyRun_FooFlags() (pythonrun.c) -> run_bar() (pythonrun.c) -> PyEval_EvalCode() (ceval.c) -> PyEval_EvalCodeEx() (ce

Re: [Python-Dev] Python VM

2008-07-21 Thread Martin v. Löwis
Jakob, This looks fairly correct. A few comments below. > Control Flow > > The calling sequence is: > main() (in python.c) -> Py_Main() (main.c) -> PyRun_FooFlags() (pythonrun.c) > -> > run_bar() (pythonrun.c) -> PyEval_EvalCode() (ceval.c) -> PyEval_EvalCodeEx() > (ceval.c) -> PyEv

Re: [Python-Dev] Python VM

2008-07-21 Thread Terry Reedy
Jakob Sievers wrote: Hi, I've been reading the Python VM sources over the last few afternoons and I took some notes, which I thought I'd share (and if anyone familiar with the VM internals could have a quick look at them, I'd really appreciate it). This is the CPython VM. Other implementatio