[IPython-dev] instance docstring vs class docstring
Ville M. Vainio
vivainio at gmail.com
Tue May 8 12:14:20 EDT 2007
On 5/8/07, Gael Varoquaux <gael.varoquaux at normalesup.org> wrote:
> 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.
Why should we care so much about 'help', since we have ? and ??
As long as it doesn't crash...
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
More information about the IPython-dev