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

P

Porky Pig Jr

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top