On Fri, May 7, 2010 at 12:14 PM, Chris Rebert <c...@rebertia.com> wrote:
> Personally, I find the following the most unintuitive: > divmod(-11, 3) == (-4, 1) > > So, we overshoot -11 and then add 1 to go back to the right place? > That violates my intuitive thought that abs((n//d)*d) <= abs(n) ought to > hold. > Haha, really? *gives it a try* Oh wow... Yeah. I don't like that either. Cheers, Xav
-- http://mail.python.org/mailman/listinfo/python-list