[Python-ideas] float('∞')=float('inf')
Serhiy Storchaka
storchaka at gmail.com
Fri Jul 12 23:58:24 CEST 2013
13.07.13 00:52, Masklinn написав(ла):
> On 12 juil. 2013, at 21:46, Serhiy Storchaka <storchaka at gmail.com> wrote:
>> 13.07.13 00:27, Joshua Landau написав(ла):
>>> On 12 July 2013 18:58, Serhiy Storchaka <storchaka at gmail.com
>>> <mailto:storchaka at gmail.com>> wrote:
>>> I agree. But how is it related to ½ and 3.(142857)?
>>> ½ === 1/2; thus is an expression
>>
>> 0.5 === 5/10. Isn't it an expression?
>
> In the context of making a difference between literal values and other expressions in python, yes 5/10 is an expression, no 0.5 is not one.
In this context both ∞ and ½ are not literal values and not expressions.
More information about the Python-ideas
mailing list