dynamically modify help text

Red Forks redforks at gmail.com
Sun Jun 27 22:37:16 EDT 2010


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

On Monday, June 28, 2010, Brian Blais <bblais at 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
> bblais at bryant.edu
> http://web.bryant.edu/~bblais
> http://bblais.blogspot.com/
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list