[Python-Dev] C AST to Python discussion

Brett Cannon brett at python.org
Thu Feb 16 07:01:18 CET 2006

On 2/15/06, Neal Norwitz <nnorwitz at gmail.com> wrote:
> On 2/15/06, Barry Warsaw <barry at python.org> wrote:
> >
> > I haven't been following the AST stuff closely enough, but I'm not crazy
> > about putting access to this in the sys module.  It seems like it
> > clutters that up with a name that will be rarely used by the average
> > Python programmer.
> Agreed.  I'm hoping we can get rid of lots of code in the compiler
> module and use the AST provided from C.  The compiler module seems the
> best place to put anything related to the AST.

Sure, fine with me.  I am not in love with the sys idea, just seemed
reasonable.  I just happen to think of the compiler module as this
Python implementation of the bytecode compiler and not as this generic
package where all compiler-related stuff goes.  But if we move towards
removing the parts of the compiler package that overlap with any AST
being exposed that would be great.


More information about the Python-Dev mailing list