wiki update: decorator syntax breakdown
Steven Bethard
steven.bethard at gmail.com
Thu Aug 12 14:48:33 EDT 2004
Mark Bottjer <mark_bottjer at hotmail.com> wrote in message news:<411ac3cc$1 at nntp.zianet.com>...
> 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
More information about the Python-list
mailing list