A bit weird dictionary behavior

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Sep 22 21:43:57 CEST 2008


bearophileHUGS 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...

(snip)



More information about the Python-list mailing list