A bit weird dictionary behavior

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Sep 24 12:15:09 CEST 2008

In message <mailman.1385.1222126198.3487.python-list at python.org>, Terry
Reedy wrote:

>  From this viewpoint, objecters would instead have to argue that it is
> wrong to have such implicit calls and that programmers should have to
> put them in explicitly.

But then again, you want to avoid unexpected restrictions like in Java,
where bool is a separate type, and while it is discrete, it cannot be used
to index arrays.

(Cf Pascal, where any discrete type could be used as an array index type.)

More information about the Python-list mailing list