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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top