summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2021-06-22 14:19:24 (GMT)
committerGitHub <noreply@github.com>2021-06-22 14:19:24 (GMT)
commitd1ae57027fc39ff60dcfc1b63881400e5ca3ce56 (patch)
tree5804dd057c67a19bf31d00d802a7e466444c2c58 /Modules
parentadfa1ba398c74720b42f16f06fd3ec0353599fa5 (diff)
downloadcpython-d1ae57027fc39ff60dcfc1b63881400e5ca3ce56.zip
cpython-d1ae57027fc39ff60dcfc1b63881400e5ca3ce56.tar.gz
cpython-d1ae57027fc39ff60dcfc1b63881400e5ca3ce56.tar.bz2
bpo-41621: Document defaultdict's default_factory parameter (GH-21945)
It defaults to None and is positional only.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_collectionsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index 79c6b57..57e3464 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -2241,7 +2241,7 @@ defdict_init(PyObject *self, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR(defdict_doc,
-"defaultdict(default_factory[, ...]) --> dict with default factory\n\
+"defaultdict(default_factory=None, /, [...]) --> 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\