[Tutor] Re: documentations for attributes/properties ???

pan at uchicago.edu pan at uchicago.edu
Tue May 11 14:16:32 EDT 2004


> >I know that python uses 'documentation string' __doc__ for 
> >functions and classes. Is there something similar for attributes and
> >properties ???
> 
> For properties yes (After all, they are syntactic sugar for function
> calls) for attributes no. Any info pertaining to attributes is usually
> in the class's docstring ot the class's __init__ docstring.

So, how does the docstring for properties work ? Can you give 
an example ?




More information about the Tutor mailing list