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

Serhiy Storchaka storchaka at gmail.com
Fri Jul 12 17:26:44 CEST 2013


12.07.13 17:10, Joshua Landau написав(ла):
> int and float are obviously meant to handle abstract inputs (not
> expressions) and unicode infinity is an extension of this. Your
> "analogies" are inapt.

Why you think ½ (this is only one symbol!) and 3.(142857) (this is a 
decimal notation of the 22/7 fraction) are expressions, but ∞ or even -1 
are not?




More information about the Python-ideas mailing list