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

Chris Barker chris.barker at noaa.gov
Fri Oct 18 15:55:45 EDT 2013


On Mon, Oct 7, 2013 at 10:15 AM, Siegfried Gonzi
<sgonzi at staffmail.ed.ac.uk> wrote:
> 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]

am I missing something, or is this what you get when you type a name
on the command line:

In [15]: a = np.ones((2,3), dtype=np.float32)

In [16]: a
Out[16]:
array([[ 1.,  1.,  1.],
       [ 1.,  1.,  1.]], dtype=float32)

or print a

etc...


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list