[Python-ideas] Adding "+" and "+=" operators to dict
Steven D'Aprano
steve at pearwood.info
Sat Feb 14 13:44:27 CET 2015
On Sat, Feb 14, 2015 at 01:17:15AM -0500, Donald Stufft wrote:
> Or we can choose the interpretation that has already been chosen by
> multiple locations within Python. That keys are replaced and rhs
> wins. This is consistent with basically every location in the stdlib
> and Python core where two dicts get combined in some fashion other than
> specialized subclasses.
I'll vote +1 on that if you promise not to use the + operator :-)
--
Steve
More information about the Python-ideas
mailing list