[Python-Dev] (no subject)
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Feb 11 21:15:46 CET 2015
Georg Brandl wrote:
> The call syntax part is a mixed bag: on the one hand it is nice to be
> consistent with the extended possibilities in literals (flattening),
> but on the other hand there would be small but annoying inconsistencies
> anyways (e.g. the duplicate kwarg case above).
That inconsistency already exists -- duplicate keys are
allowed in dict literals but not calls:
>>> {'a':1, 'a':2}
{'a': 2}
--
Greg
More information about the Python-Dev
mailing list