dynamically modify help text
Brian Blais
bblais at bryant.edu
Mon Jun 28 20:23:46 EDT 2010
On Jun 28, 2010, at 14:25 , Chris Rebert wrote:
>> On Jun 27, 2010, at 22:37 , Red Forks wrote:
>>> Read you doc file and set the __doc__ attr of the object you want to
>>> change.
>>>
>
> __doc__ is normally defined on classes, e.g. `A`, not instances, e.g.
> `a`. help() looks for __doc__ accordingly.
>
> Cheers,
> Chris
so that gets back to my original question: can I change this text at
runtime. Doesn't look like I can, because it is defined for classes
rather than instances. Am I thinking about this correctly?
bb
--
Brian Blais
bblais at bryant.edu
http://web.bryant.edu/~bblais
http://bblais.blogspot.com/
More information about the Python-list
mailing list