[Python-Dev] Non-string keys in type dict (original) (raw)

Benjamin Peterson benjamin at python.org
Thu Mar 8 02:42:31 CET 2012


2012/3/7 Victor Stinner <victor.stinner at gmail.com>:

So my question is: what is the use case of such dict? Why do we still support it?

Probably a side-effect of implementation.

Can't we simply raise an error if the dict contains non-string keys?

Sounds okay to me.

-- Regards, Benjamin



More information about the Python-Dev mailing list