File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4635,7 +4635,7 @@ can be used interchangeably to index the same dictionary entry.
4635
4635
4636
4636
:meth: `update ` accepts either another object with a ``keys() `` method (in
4637
4637
which case :meth: `~object.__getitem__ ` is called with every key returned from
4638
- the method). or an iterable of key/value pairs (as tuples or other iterables
4638
+ the method) or an iterable of key/value pairs (as tuples or other iterables
4639
4639
of length two). If keyword arguments are specified, the dictionary is then
4640
4640
updated with those key/value pairs: ``d.update(red=1, blue=2) ``.
4641
4641
Original file line number Diff line number Diff line change @@ -4625,8 +4625,8 @@ PyDoc_STRVAR(getitem__doc__,
4625
4625
"__getitem__($self, key, /)\n--\n\nReturn self[key]." );
4626
4626
4627
4627
PyDoc_STRVAR (update__doc__ ,
4628
- "D.update([E, ]**F) -> None. Update D from dict /iterable E and F.\n\
4629
- If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]\n\
4628
+ "D.update([E, ]**F) -> None. Update D from mapping /iterable E and F.\n\
4629
+ If E is present and has a .keys() method, then does: for k in E.keys() : D[k] = E[k]\n\
4630
4630
If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v\n\
4631
4631
In either case, this is followed by: for k in F: D[k] = F[k]" );
4632
4632
You can’t perform that action at this time.
0 commit comments