A bit weird dictionary behavior

Carl Banks pavlovevidence at gmail.com
Mon Sep 22 23:48:11 CEST 2008


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


Carl Banks



More information about the Python-list mailing list