Inspired Python
◆◆◆
>>> d = {"name": "Jerry", "last_name": "Seinfeld", "city": "NYC"}
>>> e = {"name": "George", "last_name": "Costanza"}
# Works in Python 3.3+
# But note the reversed order
>>> from collections import ChainMap
>>> dict(ChainMap(e, d))
{'name': 'George', 'city': 'NYC', 'last_name': 'Costanza'}
# Works in Python 3.5+
>>> {**d, **e}
{'name': 'George', 'city': 'NYC', 'last_name': 'Costanza'}
# Works in Python 3.9+
>>> d | e
{'name': 'George', 'city': 'NYC', 'last_name': 'Costanza'}
>>> e | d
{'name': 'Jerry', 'last_name': 'Seinfeld', 'city': 'NYC'}