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 @@ -4626,7 +4626,7 @@ can be used interchangeably to index the same dictionary entry.
46264626
46274627 :meth: `update ` accepts either another object with a ``keys() `` method (in
46284628 which case :meth: `~object.__getitem__ ` is called with every key returned from
4629- the method). or an iterable of key/value pairs (as tuples or other iterables
4629+ the method) or an iterable of key/value pairs (as tuples or other iterables
46304630 of length two). If keyword arguments are specified, the dictionary is then
46314631 updated with those key/value pairs: ``d.update(red=1, blue=2) ``.
46324632
Original file line number Diff line number Diff line change @@ -3634,8 +3634,8 @@ PyDoc_STRVAR(sizeof__doc__,
36343634"D.__sizeof__() -> size of D in memory, in bytes" );
36353635
36363636PyDoc_STRVAR (update__doc__ ,
3637- "D.update([E, ]**F) -> None. Update D from dict /iterable E and F.\n\
3638- If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]\n\
3637+ "D.update([E, ]**F) -> None. Update D from mapping /iterable E and F.\n\
3638+ If E is present and has a .keys() method, then does: for k in E.keys() : D[k] = E[k]\n\
36393639If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v\n\
36403640In either case, this is followed by: for k in F: D[k] = F[k]" );
36413641
You can’t perform that action at this time.
0 commit comments