[Python-Dev] Re: PEP 318: Decorators last before colon (original) (raw)
David Eppstein eppstein at ics.uci.edu
Mon Apr 5 22:34:38 EDT 2004
- Previous message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Next message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > 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
- Previous message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Next message: [Python-Dev] Re: PEP 318: Decorators last before colon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]