[Python-checkins] cpython (2.7): correct defaultdict signature in docstring (closes #20250)
benjamin.peterson
python-checkins at python.org
Tue Jan 14 05:56:44 CET 2014
http://hg.python.org/cpython/rev/950f1e83bb56
changeset: 88460:950f1e83bb56
branch: 2.7
parent: 88453:87673659d8f7
user: Benjamin Peterson <benjamin at python.org>
date: Mon Jan 13 23:56:05 2014 -0500
summary:
correct defaultdict signature in docstring (closes #20250)
Patch from Andrew Barnert.
files:
Modules/_collectionsmodule.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -1612,11 +1612,13 @@
}
PyDoc_STRVAR(defdict_doc,
-"defaultdict(default_factory) --> dict with default factory\n\
+"defaultdict(default_factory[, ...]) --> dict with default factory\n\
\n\
The default factory is called without arguments to produce\n\
a new value when a key is not present, in __getitem__ only.\n\
A defaultdict compares equal to a dict with the same items.\n\
+All remaining arguments are treated the same as if they were\n\
+passed to the dict constructor, including keyword arguments.\n\
");
/* See comment in xxsubtype.c */
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list