Python's architecture

Terry Reedy tjreedy at home.com
Fri Sep 14 17:11:15 EDT 2001


"Jonas Bengtsson" <jonas.b at home.se> wrote in message
news:4e2ddb70.0109140637.1a603460 at posting.google.com...
> I want documentation about the python interpretator

The best documentation you will find is the source code itself.
Seriously.  If you know enough to use the word 'architecture', you
should be able to anwer most of your questions is a couple of hours.
It is all pretty clearly written C.

Some hints: last time I looked, that was one file for the grammar, one
for the lexer, one or more for parser/compiler, one for the PyCode
evaluation loop (the interpreter proper), and one for each built-in
type, each of these having the same format.  The last point means that
there is much less to look at than it would initially seem.

Terry J. Reedy





More information about the Python-list mailing list