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

Nick Coghlan ncoghlan at gmail.com
Thu Mar 8 03:20:21 CET 2012


On Thu, Mar 8, 2012 at 11:42 AM, Benjamin Peterson <benjamin at python.org> wrote:
> 2012/3/7 Victor Stinner <victor.stinner at gmail.com>:
>> Can't we simply raise an error if the dict contains
>> non-string keys?
>
> Sounds okay to me.

For 3.3, the most we can do is trigger a deprecation warning, since
removing this feature *will* break currently running code. I don't
have any objection to us starting down that path, though.

Regards,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list