[Python-checkins] cpython: Touch up grammar for dict.update() docstring.

brett.cannon python-checkins at python.org
Sat May 11 20:48:00 CEST 2013


http://hg.python.org/cpython/rev/61214ebd347d
changeset:   83714:61214ebd347d
parent:      83710:201ae2d02328
user:        Brett Cannon <brett at python.org>
date:        Sat May 11 14:46:48 2013 -0400
summary:
  Touch up grammar for dict.update() docstring.

files:
  Objects/dictobject.c |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Objects/dictobject.c b/Objects/dictobject.c
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2473,10 +2473,10 @@
 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\

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list