[New-bugs-announce] [issue36144] Dictionary addition.

Brandt Bucher report at bugs.python.org
Wed Feb 27 23:18:58 EST 2019


New submission from Brandt Bucher <brandtbucher at gmail.com>:

...as discussed in python-ideas. Semantically:

d1 + d2 <-> d3 = d1.copy(); d3.update(d2); d3
d1 += d2 <-> d1.update(d2)

Attached is a working implementation with new/fixed tests for consideration. I've also updated collections.UserDict with the new __add__/__radd__/__iadd__ methods.

----------
components: Interpreter Core
messages: 336798
nosy: brandtbucher
priority: normal
severity: normal
status: open
title: Dictionary addition.
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36144>
_______________________________________


More information about the New-bugs-announce mailing list