decorators: what's wrong with 'def [decorator-list] function-name (arguments)'

Porky Pig Jr porky_pig_jr at my-deja.com
Sat Aug 14 18:09:00 EDT 2004


Lurking on this site, watching the discussion on decorators.
Personally I like them inside the list. There were some arguments made
that having the list before 'def', such as

[static schmatic]
def f1(): pass

is bad because it breaks many things. But I can't find any references
to what's wrong with

def [static schmatic] f1(): pass

Yes, it pushes the function name further from 'def', but then we don't
need to use those abominable @@@@@. Any comments?

TIA.



More information about the Python-list mailing list