[Python-Dev] Re: PEP 318: Decorators last before colon

David Eppstein eppstein at ics.uci.edu
Mon Apr 5 22:34:38 EDT 2004


> > > There are several parsing problems with <...>: the lexer doesn't see <
> > > and > as matched brackets, so you won't be able to break lines without
> > > using a backslash, and the closing > is ambiguous -- it might be a
> > > comparison operator.
>
> Re the lexer, I don't see this as a big problem as long as multiple 
> declarators can be handled by multiple <...> pairs.

...besides, how hard can it be to convince the lexer to treat '<' at the 
start of a non-continuation line differently from other placements of 
the same char?

-- 
David Eppstein                      http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science




More information about the Python-Dev mailing list