[Tutor] documentations for attributes/properties ???
Gonçalo Rodrigues
op73418 at mail.telepac.pt
Tue May 11 06:41:04 EDT 2004
Em Tue, 11 May 2004 01:10:04 -0500, pan at uchicago.edu atirou este peixe
aos pinguins:
>Hi,
>
>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.
With my best regards,
G. Rodrigues
More information about the Tutor
mailing list