[issue32617] dict.update does not concat/replace if same key
Eric V. Smith
report at bugs.python.org
Mon Jan 22 02:46:05 EST 2018
Eric V. Smith <eric at trueblade.com> added the comment:
I'm sorry the name is confusing to you, but this behavior is correct, and how dict.update is defined:
https://docs.python.org/3.6/library/stdtypes.html#dict.update
As such, it cannot be changed.
If you want a function that merges values, you'll need to write it yourself.
Eric.
----------
nosy: +eric.smith
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32617>
_______________________________________
More information about the Python-bugs-list
mailing list