On Tue, Mar 10, 2009 at 6:35 PM, Carl Witty <[email protected]> wrote: > I just reported http://trac.cython.org/cython_trac/ticket/229, which > points out that division and % on cdef ints have C rather than Python > semantics (for instance, (-1 % 16) is -1 in C, and 15 in Python).
One point I alluded to above, but maybe should emphasize: IMHO we should preserve that a == (a//b)*b + a%b. This means that we should either change both division and modulo, or neither. Carl _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
