On Fri, May 7, 2010 at 11:13 AM, Chris Rebert <span dir="ltr"><<a href="mailto:pyideas@rebertia.com">pyideas@rebertia.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

On Thu, May 6, 2010 at 5:43 PM, Mathias Panzenböck<br>
<<a href="mailto:grosser.meister.morti@gmx.net">grosser.meister.morti@gmx.net</a>> wrote:<br>
> Shouldn't by mathematical definition -x // y be the same as -(x // y)?<br><div class="im">
> I think this rather odd. Is there any deeper reason to this behaviour? I<br>
> guess changing this will break a lot of code, but why does it behave like<br>
> this?<br>
<br>
</div>I would suppose it's what programmers have found more<br>
useful/intuitive. Most programmers aren't number theorists.<br></blockquote><div><br>Yeah, I was stinged by that before, too. I really don't find it intuitive at all - to keep the modulos remainer equal, you lose on negations and possibly integer equality. Ah well, too bad I didn't invent Python. =].<br>

<br>Cheers,<br>Xav<br></div></div>