[Numpy-discussion] (no subject)
ben.root at ou.edu
Thu Sep 18 12:48:30 EDT 2014
My vote is that NumPy is correct here. I see no reason why
>>> float('inf') / 1
>>> float('inf') // 1
should return different results.
On Thu, Sep 18, 2014 at 12:31 PM, Petr Viktorin <encukou at gmail.com> wrote:
> Over at Python-ideas, there is a thread  about the following
> >>> numpy.array(float('inf')) // 1
> >>> float('inf') // 1
> There are reasons for either result, but I believe it would be very
> nice if either Python or Numpy changed, so they would give the same
> If any of you have reasons to defend Numpy's (or Python's) choice, or
> otherwise want to chime in, please post there.
> Petr Viktorin
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion