diff options
author | Georg Brandl <georg@python.org> | 2011-12-18 18:30:55 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-12-18 18:30:55 (GMT) |
commit | ac0675cc013dffd260c65f07760faa9f38047de9 (patch) | |
tree | 45b5df3680a53c1112b56a8f91ea07378d0a848d /Objects | |
parent | 6fbd525ef59bf7bfd62b29dcc862fc1f1947dc16 (diff) | |
download | cpython-ac0675cc013dffd260c65f07760faa9f38047de9.zip cpython-ac0675cc013dffd260c65f07760faa9f38047de9.tar.gz cpython-ac0675cc013dffd260c65f07760faa9f38047de9.tar.bz2 |
Small clarification in docstring of dict.update(): the positional argument is not required.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 79894e5..768351e 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1973,9 +1973,9 @@ PyDoc_STRVAR(popitem__doc__, 2-tuple; but raise KeyError if D is empty."); PyDoc_STRVAR(update__doc__, -"D.update(E, **F) -> None. Update D from dict/iterable E and F.\n" -"If E has a .keys() method, does: for k in E: D[k] = E[k]\n\ -If E lacks .keys() method, does: for (k, v) in E: D[k] = v\n\ +"D.update([E, ]**F) -> None. Update D from dict/iterable E and F.\n" +"If E present and has a .keys() method, does: for k in E: D[k] = E[k]\n\ +If E present and lacks .keys() method, 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]"); PyDoc_STRVAR(fromkeys__doc__, |