@@ -4392,6 +4392,22 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
|
4392 | 4392 | >>> d.values() == d.values() |
4393 | 4393 | False |
4394 | 4394 | |
| 4395 | + .. describe:: d | other |
| 4396 | + |
| 4397 | + Create a new dictionary with the merged keys and values of *d* and |
| 4398 | + *other*, which must both be dictionaries. The values of *other* take |
| 4399 | + priority when *d* and *other* share keys. |
| 4400 | + |
| 4401 | + .. versionadded:: 3.9 |
| 4402 | + |
| 4403 | + .. describe:: d |= other |
| 4404 | + |
| 4405 | + Update the dictionary *d* with keys and values from *other*, which may be |
| 4406 | + either a :term:`mapping` or an :term:`iterable` of key/value pairs. The |
| 4407 | + values of *other* take priority when *d* and *other* share keys. |
| 4408 | + |
| 4409 | + .. versionadded:: 3.9 |
| 4410 | + |
4395 | 4411 | Dictionaries compare equal if and only if they have the same ``(key, |
4396 | 4412 | value)`` pairs (regardless of ordering). Order comparisons ('<', '<=', '>=', '>') raise |
4397 | 4413 | :exc:`TypeError`. |
|