[Python-ideas] Fwd: Make `float('inf') //1 == float('inf')`

Alexander Belopolsky alexander.belopolsky at gmail.com
Thu Sep 18 17:58:17 CEST 2014


On Thu, Sep 18, 2014 at 11:48 AM, Alexander Belopolsky <
alexander.belopolsky at gmail.com> wrote:

> It looks like float // float case was overlooked when it was decided that
> math.floor() should return int.


Note that PEP 3141 specifies that Real.__floordiv__ should return an
integer.


http://legacy.python.org/dev/peps/pep-3141/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140918/68af3a10/attachment.html>


More information about the Python-ideas mailing list