wiki update: decorator syntax breakdown

Steven Bethard steven.bethard at
Thu Aug 12 20:48:33 CEST 2004

Mark Bottjer <mark_bottjer at> wrote in message news:<411ac3cc$1 at>...
> 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.


More information about the Python-list mailing list