[Numpy-discussion] isarray in numpy?

Travis Oliphant oliphant@ee.byu....
Fri Mar 30 12:22:52 CDT 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