[Python-ideas] float('∞')=float('inf')
Gerald Britton
gerald.britton at gmail.com
Fri Jul 12 15:21:43 CEST 2013
>> Do you have the infinity symbol on your keyboard? I don't!.
>>
>Why does what you have on your keyboard matter? Just because the example
>uses a string literal, doesn't mean that's the only use case. I can pass
>infinity symbols along in any text medium.
Ummm...cause that's what I use when programming?
This is a truly silly idea. What next?
float('pi') = 3.14159...
float('e') = 2.71828...
float('phi') = 1.618...
etc.
Note that I don't have any of those symbols on my keyboard either.
Now, if I were Greek...
--
Gerald Britton
More information about the Python-ideas
mailing list