[Numpy-discussion] Equivalent to IDL's help function

Benjamin Root ben.root at ou.edu
Mon Oct 7 13:18:44 EDT 2013


On Mon, Oct 7, 2013 at 1:15 PM, Siegfried Gonzi
<sgonzi at staffmail.ed.ac.uk>wrote:

> Hi all
>
> What is the equivalent to IDL its help function, e.g.
>
> ==
> IDL> a = make_array(23,23,)
>
> IDL> help,a
>
> will result in:
>
> A               FLOAT     = Array[23, 23]
>
> or
>
> IDL> a = create_struct('idl',23)
>
> IDL> help,a
>
> gives:
>
> A               STRUCT    = -> <Anonymous> Array[1]
>
> ==
>
> I have been looking for it ever since using numpy. It would make my life
> so much easier.
>
>
> Thanks, Siegfried
>
>
help(a)

Note that this is an inherent feature of python, not just numpy. So, you
can do help(range) or help(np.zeros) or any such thing.

Cheers!
Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131007/82f3abbe/attachment.html>


More information about the NumPy-Discussion mailing list