[Numpy-discussion] ndarray newbie question

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


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.

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
     <no docstring>

Did you have something else in mind?



More information about the NumPy-Discussion mailing list