[Python-3000] compiler module

Joe Angell joe.d.angell at gmail.com
Thu Jan 10 23:08:15 CET 2008


Oh I see... forgive my ignorance but could you point me at some
documentation or a project that uses the c AST as you mentioned?  Is
that done through some part of the C-API?  I cannot find that in the
documentation at the moment.

Thank you,

joe

On Jan 10, 2008 2:56 PM, Brett Cannon <brett at python.org> wrote:
> On Jan 10, 2008 1:50 PM, Joe Angell <joe.d.angell at gmail.com> wrote:
> > How do you plan on letting third party tools utilize the new grammar?
>
> Don't need to plan anything; people are already using the AST that
> Python's compiler uses since 2.5 came out.
>
> > Will they have to write their own parser then, or is there some kind
> > of plugin architecture?
>
> No parser is required; Python's parser already handles the parsing.
>
> -Brett
>
>
>
> >
> > Thanks,
> >
> > joe
> >
> >
> > On Jan 10, 2008 10:34 AM, Guido van Rossum <guido at python.org> wrote:
> > >
> > > On Jan 10, 2008 8:39 AM, Joe Angell <joe.d.angell at gmail.com> wrote:
> > > > My apologies if this has been asked before, but are there any plans to
> > > > add the compiler module back in to py3k?  If so, any idea on a
> > > > timeline?  If help is needed I may be able to put in some time on
> > > > this.  I've already back ported some of the py3k grammar (function
> > > > parameter annotations) to python 2.5.1 so I can use this with the
> > > > compiler module, but I think it would be sweet to just use py3k
> > > > directly.
> > >
> > > AFAIK there are no such plans; maintaining two versions of the
> > > compiler (one in Python and one in C) has turned out to be a
> > > nightmare, with the Python version always running behind and having
> > > bugs because it wasn't used much for real work.
> > >
> > > --
> > > --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/brett%40python.org
> >
>


More information about the Python-3000 mailing list