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

Serhiy Storchaka storchaka at gmail.com
Fri Jul 12 17:42:02 CEST 2013


12.07.13 17:52, Chris Angelico написав(ла):
> On Sat, Jul 13, 2013 at 12:43 AM, Gerald Britton
> <gerald.britton at gmail.com> wrote:
>> So, if Python doesn't recognize the symbol for pi, why should it
>> recognize the one for infinity?
>
> Considering that Python can't represent π in a float anyway, I
> wouldn't be too bothered.

However Python can represent ½ in a float. Shouldn't it recognize the 
symbol for ½?




More information about the Python-ideas mailing list