David Grant wrote:
> 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 float
The following lines of code:from numpy import floordiv, mod = divmod(floor(1.5), 12)generate an exception:ValueError: need more than 0 values to unpackin 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