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

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Sep 19 18:58:44 CEST 2014


On Thu, Sep 18, 2014 at 3:35 PM, Guido van Rossum <guido at python.org> wrote:

> > In light of PEP 3141, if anything should be done about float // float it
> would be to make it return an int and as a consequence inf // 1 should
> raise an OverflowError.
>
> +1
>
I opened http://bugs.python.org/issue22444 for this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140919/3dadc793/attachment.html>


More information about the Python-ideas mailing list