[Python-ideas] float('∞')=float('inf')
Zaur Shibzukhov
szport at gmail.com
Sun Jul 14 18:58:06 CEST 2013
воскресенье, 14 июля 2013 г., 18:49:13 UTC+4 пользователь Serhiy Storchaka
написал:
>
> 14.07.13 16:53, Zaur Shibzukhov написав(ла):
> > I think that actual use cases are rather belongs to numeric area.
> > For example, one could use infinity symbol when output infinity
> > numerical results of calculations to the text file and another one input
> > them. Usually float numbers in python world are converted from string
> > using float(...). So any code that use float to convert from string
> > could benefit.This is not a real use case though, but rather some
> > scenario...
>
> If one use custom code to output an infinity float as '∞' (or '+∞', or
> '-', or '\\infty', or 'бесконечность', or '>9000'), then another one
> should use custom code to input them.
>
>
>
Yes of caurse. But I mean only the case when the output is float ('inf') or
float ('-inf') - the actual infinity values.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130714/91fc7f52/attachment.html>
More information about the Python-ideas
mailing list