[Python-ideas] integer dividion in R -- PS

Xavier Ho contact at xavierho.com
Fri May 7 10:19:05 CEST 2010


2010/5/7 spir ☣ <denis.spir at gmail.com>

> The following discussion in the article does not tell whether one solution
> is the _official_ one.
> But: that   -4/3 != -(4/3)   looks simply wrong for me.
>
> Denis
>

I believe the official decision relates to PEP 238:

http://www.python.org/dev/peps/pep-0238/

And Guido was one of the authors of the PEP, so the chances are it won't be
changed for a long time.

Cheers,
Xav

(PS: Yes, I prefer C's integer division, where it's always rounded towards 0
(truncation), not just a straight floor.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20100507/3ce2c82b/attachment.html>


More information about the Python-ideas mailing list