[Numpy-discussion] ndarray newbie question

belinda thom bthom at cs.hmc.edu
Fri Jan 5 04:22:04 EST 2007


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?

Thx,

--b



More information about the NumPy-Discussion mailing list