Read you doc file and set the __doc__ attr of the object you want to change.

On Monday, June 28, 2010, Brian Blais <bbl...@bryant.edu> wrote:
> Hello,
>
> I know that the help text for an object will give a description of every 
> method based on the doc string.  Is there a way to add something to this 
> text, specific to an object, but generated at run-time?  I have an object 
> that reads a file, and I would like part of that file to be shown if one 
> does:  help(myobject)
>
>
>                         thanks,
>
>                                 Brian Blais
>
> --
> Brian Blais
> bbl...@bryant.edu
> http://web.bryant.edu/~bblais
> http://bblais.blogspot.com/
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to