[issue36144] Dictionary union. (PEP 584)

Brandt Bucher report at bugs.python.org
Thu Feb 27 12:52:25 EST 2020


Brandt Bucher <brandtbucher at gmail.com> added the comment:

Just to clarify:

If we decide to check isinstance(other, (ChainMap, dict)), '|' should probably be used.

If we decide to check isinstance(other, Mapping), I think the copy/update methods should be used.

----------

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


More information about the Python-bugs-list mailing list