[Python-ideas] float('∞')=float('inf')

Alexander Belopolsky alexander.belopolsky at gmail.com
Sun Jul 14 04:04:04 CEST 2013


On Sat, Jul 13, 2013 at 9:39 PM, Joshua Landau <joshua at landau.ws> wrote:

> The best reason was given by the OP, who
> said that it was for data input. If you receive data that uses ∞, then
> it's useful.
>

Are you serious? Why would anyone use non-ASCII text format for numerical
data?

Note that

>>> len('∞'.encode())
3

so using '∞' does not even save space compared to 'inf'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130713/178e44e1/attachment.html>


More information about the Python-ideas mailing list