On Sat, May 24, 2008 at 10:24 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > Shouldn't that be the other way round? If you want integers, do > x.sum(dtype=int). Ints don't sum in float64 by default. >
The default behavior (x.sum() -> int) is more useful than (x.sum() -> bool) since x.any() already exists. -- Nathan Bell [EMAIL PROTECTED] http://graphics.cs.uiuc.edu/~wnbell/ _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion