[Python-3000] getting compiler package failures

Jeremy Hylton jeremy at alum.mit.edu
Mon May 14 20:58:05 CEST 2007


On 5/13/07, Guido van Rossum <guido at python.org> wrote:
> test_compiler and test_transformer have been broken for a couple of
> months now I believe.
>
> Unless someone comes to the rescue of the compiler package soon, I'm
> tempted to remove it from the p3yk branch -- it doesn't seem to serve
> any particularly good purpose, especially now that the AST used by the
> compiler written in C is exportable.

We currently lack the ability to take an AST exported by the Python-C
compiler and pass it back to the compiler to generate bytecode.  It
would be a lot more practical, however, to add this ability than to
try to maintain two different compilers.

So a qualified +1 from me.

Jeremy

>
> --Guido
>
> On 5/13/07, Brett Cannon <brett at python.org> wrote:
> > I just did a ``make distclean`` on a clean checkout (r55300) and
> > test_compiler/test_transformer are failing:
> >
> >   File
> > "/Users/drifty/Dev/python/3.x/pristine/Lib/compiler/transformer.py",
> > line 715, in atom
> >      return self._atom_dispatch[nodelist[0][0]](nodelist)
> > KeyError: 322
> >
> > or
> >
> >   File
> > "/Users/drifty/Dev/python/3.x/pristine/Lib/compiler/transformer.py",
> > line 776, in lookup_node
> >     return self._dispatch[node[0]]
> > KeyError: 331
> >
> > or
> >
> >   File
> > "/Users/drifty/Dev/python/3.x/pristine/Lib/compiler/transformer.py",
> > line 783, in com_node
> >     return self._dispatch[node[0]](node[1:])
> > KeyError: 339
> >
> >
> > I don't know the compiler package at all (which is why I am currently
> stuck
> > on Tony Lownds' PEP 3113 patch since I am getting a
> > compiler.transformer.WalkerError) so I have no clue how to
> > go about fixing this.  Anyone happen to know what may have caused the
> > breakage?
> >
> > -Brett
> >
> > _______________________________________________
> > Python-3000 mailing list
> > Python-3000 at python.org
> > http://mail.python.org/mailman/listinfo/python-3000
> > Unsubscribe:
> > http://mail.python.org/mailman/options/python-3000/guido%40python.org
> >
> >
>
>
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe:
> http://mail.python.org/mailman/options/python-3000/jeremy%40alum.mit.edu
>


More information about the Python-3000 mailing list