diff options
author | Brett Cannon <brett@python.org> | 2013-05-11 18:46:48 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-05-11 18:46:48 (GMT) |
commit | f27541653b4271a3c8fe1def08115a34df73c45e (patch) | |
tree | 3f83f9bbcf29c72685b6870a5f8469343368ca4c /Objects/dictobject.c | |
parent | 7ce35a1816254b82ac4e3196df9b17bc9585997f (diff) | |
download | cpython-f27541653b4271a3c8fe1def08115a34df73c45e.zip cpython-f27541653b4271a3c8fe1def08115a34df73c45e.tar.gz cpython-f27541653b4271a3c8fe1def08115a34df73c45e.tar.bz2 |
Touch up grammar for dict.update() docstring.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 208888d..bf9ec55 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -2473,10 +2473,10 @@ 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 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]"); +"D.update([E, ]**F) -> None. Update D from dict/iterable E and F.\n\ +If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]\n\ +If E is present and lacks a .keys() method, then 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__, "dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.\n\ |