[Python-ideas] Adding "+" and "+=" operators to dict
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Feb 13 06:46:19 CET 2015
Eric Snow wrote:
> However, the upside to
> the PEP 448 syntax is that merging could be done without requiring an
> additional intermediate dict.
It can also detect duplicate keywords and give you
a clear error message. The operator would at best
give a rather more generic error message and at
worst silently discard one of the duplicates.
--
Greg
More information about the Python-ideas
mailing list