dynamically modify help text
Brian Blais
bblais at bryant.edu
Sun Jun 27 19:27:10 EDT 2010
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/
More information about the Python-list
mailing list