[Python-Dev] Re: Decorators: vertical bar syntax
Fredrik Lundh
fredrik at pythonware.com
Mon Aug 9 22:00:19 CEST 2004
More information about the Python-Dev mailing list
Mon Aug 9 22:00:19 CEST 2004
- Previous message: [Python-Dev] Re: Decorators: vertical bar syntax
- Next message: [Python-Dev] Re: Decorators: vertical bar syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
David Eppstein wrote: > With @, a third party tool has an unambiguous indication of whether a > line is a decorator. With |, it is not possible to recognize decorators > with a regular expression, instead you have to do some context-free > parsing to determine whether some previous line has an unclosed paren > (in which case the | is a binop rather than a decorator). "\ @decorator #" """ @decorator """ (etc) </F>
- Previous message: [Python-Dev] Re: Decorators: vertical bar syntax
- Next message: [Python-Dev] Re: Decorators: vertical bar syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list