For review: PEP 308 - If-then-else expression

holger krekel pyth at devel.trillke.net
Mon Feb 10 15:43:59 EST 2003


James J. Besemer wrote:
> 
> holger krekel wrote:
> > 
> > would leave the parser having to look ahead of what this means.
> 
> The parser ALREADY looks ahead to do it's job.  That's the whole point of a 
> parser.  It's not any kind of hardship.
> 
> The only technical problem is if a proposed construct is ambiguous in the 
> sense that the parser simply cannot resolve it.  In which case the construct 
> cannot be implemented.

Do you really know the python parser?  

Your statements are true for more general parsers.  The Python one
focuses on simplicity (as so many other parts of python do).
I had a detailed discussion with Andrew Koenig about this, already.

regards,

    holger





More information about the Python-list mailing list