A possible bug with help
From: Colin J. Williams (cjw_at_sympatico.ca)
Date: 05/30/04
- Next message: Mel Wilson: "Re: Redirect stdout & stderr (similar to a daemon)"
- Previous message: Tim Peters: "RE: API : constness ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 May 2004 09:46:16 -0400
The interactive function help(object) generally delivers the doc string
of the object and, in the case of a class, with the doc strings of the
methods, properties and attributes.
If the object is a property, then help doesn't return the doc defined
for that property.
For example:
>>> help(m.M.A)
Help on property:
<property object at 0x00A7D8A0>
In this case m is a module, m.M is a class and m.M.A is a property of M,
defined as:
A= property(fget= toArray,
doc= 'Deliver the data as an array.')
Colin W.
- Next message: Mel Wilson: "Re: Redirect stdout & stderr (similar to a daemon)"
- Previous message: Tim Peters: "RE: API : constness ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]