Numerical python bug?

Nadav Horesh Nadavh at envision.co.il
Thu Aug 9 11:09:03 EDT 2001


Why the reminder (%) operator behaves differently in Numpy then the
normal python's %?

>>> from Numeric import *
>>> a = array((-3,))
>>> a
array([-3])
>>> a % 4
array([-3])
>>> -3 % 4
1

  Nadav.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Nadavh.vcf
Type: text/x-vcard
Size: 320 bytes
Desc: Card for Nadav Horesh
URL: <http://mail.python.org/pipermail/python-list/attachments/20010809/f822f330/attachment.vcf>


More information about the Python-list mailing list