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

Gerald Britton gerald.britton at gmail.com
Fri Jul 12 15:09:36 CEST 2013


> On 12 July 2013 13:36, Zaur Shibzukhov <szport at gmail.com> wrote:
> > Hello!
> >
> > Is it good idea to allow
> > float('∞') to be float('inf') in python?
>> Why?
>
>Because it obviously means infinity -- much more so than "inf" does :)

Do you have the infinity symbol on your keyboard? I don't! So, for
me, should I ask for
float('oo')
??
-1
--
Gerald Britton


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /