Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cb33b7

Browse files
committed
correct defaultdict signature in docstring (closes #20250)
Patch from Andrew Barnert.
1 parent 5688222 commit 9cb33b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/_collectionsmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,11 +1625,13 @@ defdict_init(PyObject *self, PyObject *args, PyObject *kwds)
16251625
}
16261626

16271627
PyDoc_STRVAR(defdict_doc,
1628-
"defaultdict(default_factory) --> dict with default factory\n\
1628+
"defaultdict(default_factory[, ...]) --> dict with default factory\n\
16291629
\n\
16301630
The default factory is called without arguments to produce\n\
16311631
a new value when a key is not present, in __getitem__ only.\n\
16321632
A defaultdict compares equal to a dict with the same items.\n\
1633+
All remaining arguments are treated the same as if they were\n\
1634+
passed to the dict constructor, including keyword arguments.\n\
16331635
");
16341636

16351637
/* See comment in xxsubtype.c */

0 commit comments

Comments
 (0)