[Numpy-discussion] ndarray newbie question

Robert Kern robert.kern at gmail.com
Fri Jan 5 03:29:51 CST 2007


belinda thom wrote:
> Pierre,
> 
> Thanks for the reply.
> 
>  > Some context: the type of introspection I'm often wishing I could do
>  > in a single, easy command usually has to do w/getting to know the
>  > software better.
> 
> dir?
> obj.__doc__ ?
> 
> When I try the latter recommendation above w/numpy arrays, I get:
> 
> In [1]: import numpy as N
> 
> In [2]: a = N.array([1,2,3])
> 
> In [3]: a.__doc__?
> Type:           NoneType
> Base Class:     <type 'NoneType'>
> String Form:    None
> Namespace:      Interactive
> Docstring:
>      <no docstring>
> 
> 
> Did you have something else in mind?

The ?s were not literal.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the Numpy-discussion mailing list