3 ms·
You can already do {**d1, **d2} today for the same effect.
by gnulinux 7y ago
You can already do
{**d1, **d2}
today for the same effect.
- CameronNemo 7y agoHere I was wondering what a dictionary union was, already having stumbled upon to it and used it. Note that the method you show is slightly different for cases of dict subclasses. The PEP notes the difference: https://www.python.org/dev/peps/pep-0584/#d1-d2 https://www.python.org/dev/peps/pep-0584/#d1-d2.