]> granicus.if.org Git - python/commitdiff
Small clarification in docstring of dict.update(): the positional argument is not...
authorGeorg Brandl <georg@python.org>
Sun, 18 Dec 2011 18:30:55 +0000 (19:30 +0100)
committerGeorg Brandl <georg@python.org>
Sun, 18 Dec 2011 18:30:55 +0000 (19:30 +0100)
Objects/dictobject.c

index 79894e56049781dc239149d4ac251d51a6679bb4..768351e224a7e41f7b93b7c813887dcf02435e72 100644 (file)
@@ -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__,