Hi Timothy, hi Ryan, On 28 March 2015 at 00:00, Ryan Gonzalez <[email protected]> wrote: > I don't know much about RPython internals, but PyPy calls > rpython.rtyper.lltypesystem.module.ll_math.math_fmod for modulus operations > on floats.
Yes, "%" on floats is not supported. You should use math.fmod() in RPython. See also how PyPy implements "%" on floats in pypy.objspace.std.floatobject: descr_mod(). Of course it would be possible to add RPython support, but we figured out that the particular rules that make "%" on floats different from math.fmod() are specific to the Python language anyway, whereas math.fmod() is directly the C fmod() function. A bientôt, Armin. _______________________________________________ pypy-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-dev
