wiki update: decorator syntax breakdown

Mark Bottjer mark_bottjer at hotmail.com
Thu Aug 12 16:35:20 EDT 2004


Steven Bethard wrote:
> Mark Bottjer <mark_bottjer at hotmail.com> wrote in message news:<411ac3cc$1 at nntp.zianet.com>...
>>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.

I think so, yes. Thanks.

   -- Mark



More information about the Python-list mailing list