summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-06-23 14:58:20 (GMT)
committerGitHub <noreply@github.com>2021-06-23 14:58:20 (GMT)
commit88a3342314c8b9ff40a2b6fd4759cfbf64712c67 (patch)
treed9671c006456dcf54f4687f1dfb1d6a56690f116 /Modules
parent38e021ab90b595945f15c59273c788f2f24053dc (diff)
downloadcpython-88a3342314c8b9ff40a2b6fd4759cfbf64712c67.zip
cpython-88a3342314c8b9ff40a2b6fd4759cfbf64712c67.tar.gz
cpython-88a3342314c8b9ff40a2b6fd4759cfbf64712c67.tar.bz2
bpo-41621: Document defaultdict's default_factory parameter (GH-21945)
It defaults to None and is positional only. (cherry picked from commit d1ae57027fc39ff60dcfc1b63881400e5ca3ce56) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
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 9c8701a..eff03c7 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -2236,7 +2236,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\