[Numpy-discussion] truth value of dtypes

Alan G Isaac alan.isaac at gmail.com
Fri Dec 10 09:47:59 EST 2010


On 12/10/2010 4:13 AM, Nils Becker wrote:
> def f(dtype=None):
> ....if not dtype:

I think you want:
	if dtype is None:

fwiw,
Alan




More information about the NumPy-Discussion mailing list