[Numpy-discussion] isarray in numpy?

Travis Oliphant oliphant at ee.byu.edu
Fri Mar 30 13:22:52 EDT 2007


mark wrote:

>Is there a way to check whether something is an array?
>It seems that
>  
>
isinstance(a, numpy.ndarray)

This will return True if a is an array or a sub-class. 

-Travis




More information about the NumPy-Discussion mailing list