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

Sturla Molden sturla at molden.no
Sun Jul 14 17:07:29 CEST 2013


Why not include physical constants as well?

float('Å') = 1E-10
float('c') = 2.9979E8
float('R') = 8.314

-1 (if I have a vote)

Sturla



Den 12. juli 2013 kl. 15:09 skrev Gerald Britton <gerald.britton at gmail.com>:

>> 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
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas


More information about the Python-ideas mailing list