[Python-ideas] parser in stdlib

Aaron Brady castironpi at comcast.net
Sun May 13 06:41:27 CEST 2007


> -----Original Message-----
> From: gvanrossum at gmail.com [mailto:gvanrossum at gmail.com] On Behalf Of
> Guido van Rossum
> Sent: Friday, May 11, 2007 9:30 PM
> 
> On 5/11/07, Aaron Brady <castironpi at comcast.net> wrote:
> > I suspect the true reason lies more with Sakkis' post [5/10 23:26 us
> > central].  A mimetic structure such as Python will sit somewhere between
> > restriction and liberty.  Best to be deliberate in choosing a place on
> the
> > continuum.  But where, exactly?
> 
> What on earth is a "mimetic structure"? Please keep the jargon
> understandable for the rest of us, at least if you want to be heard.
> 
> > [snip]
> > The current state is too restrictive.
> 
> That's easy for you to say. Have you tried (*seriously* tried) to
> specify such a thing? (For Python, maintaining full backwards
> compatibility.) In this community, code talks. Good understandable
> specs are sometimes allowed to speak. Wild ideas, especially if they
> involve "let others figure out how to design and implement my idea,
> but I need it now" are shown the door.
> 
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)

> What on earth is a "mimetic structure"? Please keep the jargon

Any kind of framework.  Policies, axioms, etc.  A bit of a stretch.

> Good understandable specs are sometimes allowed to speak.

Here is the potential seed of compromise.

>>> import compiler
>>> compiler.suite( 'tok1 id2' )
Module(None, Stmt([Name('a')), Name('b'))]))

The ASTVisitor raises a SyntaxError prior to execution.








More information about the Python-ideas mailing list