Re: how to document a property

2008-11-27 Thread Luis Zarrabeitia
Quoting TP <[EMAIL PROTECTED]>: > d : > int(x[, base]) -> integer > > Convert a string or number to an integer, if possible. A floating point > argument will be truncated towards zero (this does not include a string > representation of a floating point number!) When converting a string, use >

how to document a property

2008-11-27 Thread TP
Hi everybody, I know how to document a function or a method, with a docstring (see below for "foo" method documentation ("bar")). But, how to document a property (below, self.d)? ### class a(): def __init__( self ): self.d = 2 def foo( self