mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
[3.12] gh-116938: Fix dict.update
docstring and remove erraneous full stop from dict
documentation (GH-125421) (#126151)
gh-116938: Fix `dict.update` docstring and remove erraneous full stop from `dict` documentation (GH-125421)
(cherry picked from commit 5527c4051c
)
Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
b267b6241b
commit
1fc1a185ed
2 changed files with 3 additions and 3 deletions
|
@ -4626,7 +4626,7 @@ can be used interchangeably to index the same dictionary entry.
|
|||
|
||||
:meth:`update` accepts either another object with a ``keys()`` method (in
|
||||
which case :meth:`~object.__getitem__` is called with every key returned from
|
||||
the method). or an iterable of key/value pairs (as tuples or other iterables
|
||||
the method) or an iterable of key/value pairs (as tuples or other iterables
|
||||
of length two). If keyword arguments are specified, the dictionary is then
|
||||
updated with those key/value pairs: ``d.update(red=1, blue=2)``.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue