Status of PEP's?

David Eppstein eppstein at ics.uci.edu
Mon Mar 4 20:26:16 EST 2002


In article <mailman.1015287849.16661.python-list at python.org>,
 James_Althoff at i2.com wrote:

> [David Eppstein]
> > It seems like it should be really easy to modify the parser to
> > parse
>     "for" expression ":"
> > and then check whether the expression is an "in" or a
> > comparison...
> 
> You might want to think this through a bit more since neither arbitrary
> "expression" nor arbitrary "conditional" is supported in the suggestions
> posted so far.

I didn't suggest that it would be.
I suggested that this would be a way to implement the parser for 
for-loops, if for some reason it's too much work to make it parse only 
the expressions allowed in a for-loop.



More information about the Python-list mailing list