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

Warren Focke focke@slac.stanford....
Tue Apr 24 16:44:17 CDT 2007

On Tue, 24 Apr 2007, Timothy Hochberg wrote:

> On 4/24/07, Robert Kern <robert.kern@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).


More information about the Numpy-discussion mailing list