[Numpy-discussion] Another change in default type of ones and zeros.

Charles R Harris charlesr.harris at gmail.com
Sat Jul 7 15:21:43 EDT 2007

Hi All,

Originally, ones and zeros defaulted to integer, later the default changed
to float, now it looks like it is integer again.

In [80]: ones(2).dtype
Out[80]: dtype('int32')

In [81]: zeros(2).dtype
Out[81]: dtype('int32')

In [82]: __version__
Out[82]: '1.0.4.dev3880'

This could break some code. Did I miss a decision somewhere along the line?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070707/96fa83fd/attachment.html>

More information about the NumPy-Discussion mailing list