diff options
author | Victorien <65306057+Viicos@users.noreply.github.com> | 2024-10-11 23:05:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-11 23:05:13 (GMT) |
commit | 21ac0a7f4cf6d11da728b33ed5e8cfa65a5a8ae7 (patch) | |
tree | f52c3e22422c90bd956b1e582aca634ffab94ea6 /Lib | |
parent | 89515be596a0ca05fd9ab4ddf76c8013dd093545 (diff) | |
download | cpython-21ac0a7f4cf6d11da728b33ed5e8cfa65a5a8ae7.zip cpython-21ac0a7f4cf6d11da728b33ed5e8cfa65a5a8ae7.tar.gz cpython-21ac0a7f4cf6d11da728b33ed5e8cfa65a5a8ae7.tar.bz2 |
gh-116938: Clarify documentation of `dict` and `dict.update` regarding the positional argument they accept (#125213)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/_collections_abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index c2edf6c..06667b7 100644 --- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py @@ -962,7 +962,7 @@ class MutableMapping(Mapping): def update(self, other=(), /, **kwds): ''' D.update([E, ]**F) -> None. Update D from mapping/iterable E and F. - If E present and has a .keys() method, does: for k in E: D[k] = E[k] + If E present and has a .keys() method, does: for k in E.keys(): D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v ''' |