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
http://www.davidgrant.ca
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to