[Numpy-discussion] dtype truth value

Matthew Brett matthew.brett at gmail.com
Sat Sep 23 14:15:57 CDT 2006


> So, you can think of the test as
>
> if dtype(...):
>    print "Data-type has fields:"
> else:
>    print "Data-type does not have fields:"

Thank you as ever for your very clear and helpful explanation,

Best,

Matthew




More information about the Numpy-discussion mailing list