> I'm +1 on Python semantics. We could make the C version available under > some obscure name for any case when one really wants the speed, like > cython.fast_c_mod(-1, 16).
Couldn't we just use the same trick as for buffer arrays -- i.e. different checks are performed when its unsigned vs. signed? I don't see why unsigned integers are not identical in behavior here to C. I've also never come across a situation where one wants -1 % 16 to be -1 and not 15, but maybe there is some obscure use case. --Hoyt ++++++++++++++++++++++++++++++++++++++++++++++++ + Hoyt Koepke + University of Washington Department of Statistics + http://www.stat.washington.edu/~hoytak/ + [email protected] ++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
