[Numpy-discussion] divmod issue

David Grant davidgrant at gmail.com
Sun Aug 6 03:14:58 CDT 2006

The following lines of code:

from numpy import floor
div, mod = divmod(floor(1.5), 12)

generate an exception:

ValueError: need more than 0 values to unpack

in numpy-0.9.8. Does anyone else see this? It might be due to the fact that
floor returns a float64scalar. Should I be forced to cast that to an int
before calling divmod with it?

David Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060806/96cb4b7f/attachment.html 

More information about the Numpy-discussion mailing list