Re: python interpreter



g.franzkowiak wrote:
> Hi everybody,
>
> my interest is for the internals of the Python interpreter.
>
> I've used up to now FORTH for something and this indirect interpreter is
> very smart.
> --- ASM ---------------------------------------------------------------
>
> Where can I find informations like this for Python ?

Depends on what you want. If you want to see the disassembled bytes
similar to what I cut out, see the dis module. (e.g.,
dis.dis(foo_func))

If you want to know how the byte codes are created, it's mostly in
Python/compile.c. If you want to know how the byte codes are executed,
it's mostly in Python/ceval.c.

All base Python objects implemented in C are under Objects/. All
standard modules implemented in C are under Modules/.

Get the source and build it. It's quite readable.

n

.



Relevant Pages

  • Re: apache & mod_python
    ... is simultaneous multi http client calls can present any problem? ... thread safety of the Python interpreter per-se. ... Whether this will be an issue or not is dependent on which Apache MPM ...
    (comp.lang.python)
  • Re: apache & mod_python
    ... You will find Python 2.5 versions where whereas the official mod_python ... Apache and Python. ... thread safety of the Python interpreter per-se. ... Whether this will be an issue or not is dependent on which Apache MPM ...
    (comp.lang.python)
  • Re: SWIG problems - "ImportError: dynamic module does not define......."
    ... following link helpful: ... "The problem is that some entry points are defined by the Python runtime ... To retrieve them from an installed Python interpreter, ... >the following commands: ...
    (comp.lang.python)
  • Re: Python bytecode compatibility between interpreter versions
    ... > details of the particular version of the Python interpreter that it was ... of .pyc files is an implementation detail of one version of the Python ... the JVM only executes bytecode. ...
    (comp.lang.python)
  • Re: New to Python - Compiled Language?
    ... >> doesn't mean the end user needs to install a Python interpreter. ...
    (comp.lang.python)