[Numpy-discussion] truth value of dtypes

Alan G Isaac alan.isaac@gmail....
Fri Dec 10 08:47:59 CST 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