[IPython-dev] instance docstring vs class docstring

Gael Varoquaux gael.varoquaux at normalesup.org
Tue May 8 12:09:28 EDT 2007

This is not real the right mailing list to ask this question, but as it
is ipython related I will go ahead...

If I have a module with code like this:

class A(object):

a = A()


and I import it in ipython.

a? return the proper docstring (the instance's), but "help(a)" returns
the class's docstring.

Is there a way to avoid this inconvenient ? Do you think modifying
ipython's "help" function to workaround this would be a good idea ?



More information about the IPython-dev mailing list