[Python-ideas] float('∞')=float('inf')
Zaur Shibzukhov
szport at gmail.com
Fri Jul 12 15:37:51 CEST 2013
Because infinity is special case of numbers. Unicode standard have regular
infinity symbol and it's natural to represent inifinity as ∞.
пятница, 12 июля 2013 г., 17:12:09 UTC+4 пользователь Serhiy Storchaka
написал:
>
> 12.07.13 15:36, Zaur Shibzukhov написав(ла):
> > Is it good idea to allow
> > float('∞') to be float('inf') in python?
>
> float('½') == 0.5?
> float('3.(142857)') == 22/7?
> int('Ⅶ') == 7?
> int('✌') == 2?
>
>
> _______________________________________________
> Python-ideas mailing list
> Python... at python.org <javascript:>
> http://mail.python.org/mailman/listinfo/python-ideas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130712/f8e080de/attachment-0001.html>
More information about the Python-ideas
mailing list