[SciPy-Dev] scipy stats tutorial

Ralf Gommers ralf.gommers at googlemail.com
Sat May 12 16:51:19 EDT 2012


On Sat, May 12, 2012 at 9:54 PM, nicky van foreest <vanforeest at gmail.com>wrote:

> > Could you remove the use of the extradoc parameter? It's not needed
> anymore,
> > and we'll probably get rid of it at some point. Looking at the docstring
> can
> > be done with help() in the Python interpreter or "?" in IPython.
>
> Look here:
>
> nicky at chuck:~$ python
> Python 2.7.3 (default, Apr 20 2012, 22:39:59)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from scipy.stats import norm
> Help on norm_gen in module scipy.stats.distributions object:
>
> class norm_gen(rv_continuous)
>  |  Method resolution order:
>
> etc.
>
> I did not research the cause of this, but I don't get the doc of norm,
> but of norm_gen. When I use ipython I get the correct results though.
> What would be the best way to call the documentation of extra_doc from
> within python?


Oh yes, forgot about that. Python help() is working poorly. Better to do
"print norm.__doc__" then.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20120512/a3735f3c/attachment.html>


More information about the SciPy-Dev mailing list