[Numpy-discussion] Oddity with numpy.int64 integer division

Warren Focke focke at slac.stanford.edu
Tue Apr 24 17:44:17 EDT 2007



On Tue, 24 Apr 2007, Timothy Hochberg wrote:

> On 4/24/07, Robert Kern <robert.kern at gmail.com> wrote:
> >
> > Christian Marquardt wrote:
>
>
>
> > > Restore the invariant, and follow python.
>
>
> This seems to imply that once upon a time numpy/numeric/numarray followed
> python here, but as far as I can recall that was never the case. Instead
> they followed C completely, ostensibly for performance reasons. That
> preserved the invariant in question, but not compatibility with Python.

That's how I remember it, too.  And I think I'd prefer it be that way
again, unless it can be demonstrated that the hit from being consistent
with python is "small".

Note that C99 specifies behavior opposite that of python (but still
consistent with itself).

w




More information about the NumPy-Discussion mailing list