[Python-ideas] Adding "+" and "+=" operators to dict
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Feb 13 06:46:19 CET 2015
More information about the Python-ideas mailing list
Fri Feb 13 06:46:19 CET 2015
- Previous message: [Python-ideas] Adding "+" and "+=" operators to dict
- Next message: [Python-ideas] Adding "+" and "+=" operators to dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-ideas] Adding "+" and "+=" operators to dict
- Next message: [Python-ideas] Adding "+" and "+=" operators to dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list