mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Update docstring for dict.update() to match the new realities.
This commit is contained in:
parent
8759090562
commit
d70ad8a9d9
1 changed files with 2 additions and 1 deletions
|
@ -1779,7 +1779,8 @@ PyDoc_STRVAR(values__doc__,
|
|||
"D.values() -> list of D's values");
|
||||
|
||||
PyDoc_STRVAR(update__doc__,
|
||||
"D.update(E) -> None. Update D from E: for k in E.keys(): D[k] = E[k]");
|
||||
"D.update(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k]\n\
|
||||
(if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]");
|
||||
|
||||
PyDoc_STRVAR(fromkeys__doc__,
|
||||
"dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue