A bit weird dictionary behavior
bruno.42.desthuilliers at websiteburo.invalid
Tue Sep 23 09:09:20 CEST 2008
Carl Banks a écrit :
> On Sep 22, 3:43 pm, Bruno Desthuilliers
> <bdesth.quelquech... at free.quelquepart.fr> wrote:
>> bearophileH... at lycos.com a écrit :
>>> Pekka Laukkanen:
>>>> but it still doesn't feel exactly right. Would it be worth submitting a bug?
>>> It feels wrong because it is. In a tidier language (Pascal, Java, etc)
>>> a boolean and an integer must be different types.
>> Some would argue (and some did by the time Python grew a 'bool' type)
>> that what is wrong is to have a bool type in a language that already
>> have a wider definition of the truth value of an expression...
> And some would argue that it was wrong to have such a wide definition
> for the truth value of an expression in the first place...
More information about the Python-list