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
|
@ -3634,8 +3634,8 @@ PyDoc_STRVAR(sizeof__doc__,
|
|||
"D.__sizeof__() -> size of D in memory, in bytes");
|
||||
|
||||
PyDoc_STRVAR(update__doc__,
|
||||
"D.update([E, ]**F) -> None. Update D from dict/iterable E and F.\n\
|
||||
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]\n\
|
||||
"D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.\n\
|
||||
If E is present and has a .keys() method, then does: for k in E.keys(): D[k] = E[k]\n\
|
||||
If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v\n\
|
||||
In either case, this is followed by: for k in F: D[k] = F[k]");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue