[issue21320] dict() allows keyword expansion with integer keys, e.g. dict(**{5:'v'})

Raymond Hettinger report at bugs.python.org
Tue Apr 22 09:50:23 CEST 2014


Raymond Hettinger added the comment:

IIRC, we've only created -3 warnings for things that would be incorrectly accepted by Python 3 (such as floor division using /).   

I don't think that applies here and isn't worth monkeying with Py2.7.  It goes in the harmless nuisance category, something that affects almost no one.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21320>
_______________________________________


More information about the Python-bugs-list mailing list