[Python-Dev] def ... decorate
exarkun at divmod.com
Sat Aug 14 07:32:04 CEST 2004
Jack Diederich wrote:
> On Fri, Aug 13, 2004 at 02:51:37PM -0500, Skip Montanaro wrote:
>> def p_statement_expr:
>> grammarrule('statement : expression')
>> version("Added in 2.4")
>> decorate (self, p):
>> """docstring here"""
>> print p
> A group of points
> * it breaks grepability badly
"@" isn't all that greppable.
exarkun at boson:~/Twisted$ grep -E '^[ \t]+@\w+' ./ -r | wc -l
Personally, greppability doesn't seem particular important either way.
> * it breaks existing tools by radically changing the grammar
Existing tools are going to break. That's what happens when you
change the grammar.
More information about the Python-Dev