[Python-Dev] Non-string keys in type dict

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

AltStyle によって変換されたページ (->オリジナル) /