wiki update: decorator syntax breakdown

M

Mark Bottjer

Steven said:
Just wanted to let everyone know that I went through the wiki and
tried to consolidate some of the advantages/disadvantages of the
various syntax decisions:

Cool!

*rummage* *rummage*

Hm. Just as a note, I didn't spot the following (recent?) variant:

class C:
def c(self):
meta:
classmethod
doc('This is a function!')
pass

For example, see the "Decorators proposal" thread.

Thanks for all the hard work.

-- Mark
 
S

Steven Bethard

Mark Bottjer said:
Hm. Just as a note, I didn't spot the following (recent?) variant:

class C:
def c(self):
meta:
classmethod
doc('This is a function!')
pass

I think this would fall under:
Indicator: keyword: 'meta'
Location: post-def
List Notation: One per line
Indentation: Indent decorators only

Right? I added 'meta' to the keyword section.

Steve
 
M

Mark Bottjer

Steven said:
I think this would fall under:
Indicator: keyword: 'meta'
Location: post-def
List Notation: One per line
Indentation: Indent decorators only

Right? I added 'meta' to the keyword section.

I think so, yes. Thanks.

-- Mark
 

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
474,202
Messages
2,571,057
Members
47,667
Latest member
DaniloB294

Latest Threads

Top