[Python-Dev] Please help complete the AST branch

Jeremy Hylton jhylton at gmail.com
Wed Jan 5 19:54:03 CET 2005


On Wed, 5 Jan 2005 13:28:11 -0500, Raymond Hettinger <python at rcn.com> wrote:
> Would it be helpful for me to move the peepholer out of compile.c into a
> separate source file?

It doesn't really matter.  There are two reasons.  1) We've been
working on the new compiler code in newcompile.c, rather than
compile.c.  When it is finished, we'll replace compile.c with
newcompile.c, but it was helpful to have both around at first.
2) Peephole optimizations would be done on the basic block
intermediate representation rather than code objects.  So we'll need
to rewrite it anyway to use the new IR.

Jeremy


More information about the Python-Dev mailing list