summaryrefslogtreecommitdiff
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2021-06-22 10:19:24 -0400
committerGitHub <noreply@github.com>2021-06-22 10:19:24 -0400
commitd1ae57027fc39ff60dcfc1b63881400e5ca3ce56 (patch)
tree5804dd057c67a19bf31d00d802a7e466444c2c58 /Doc/library/collections.rst
parentadfa1ba398c74720b42f16f06fd3ec0353599fa5 (diff)
downloadcpython-git-d1ae57027fc39ff60dcfc1b63881400e5ca3ce56.tar.gz
bpo-41621: Document defaultdict's default_factory parameter (GH-21945)
It defaults to None and is positional only.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 94166ec6c7..a63090414d 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -707,9 +707,9 @@ stack manipulations such as ``dup``, ``drop``, ``swap``, ``over``, ``pick``,
:class:`defaultdict` objects
----------------------------
-.. class:: defaultdict([default_factory[, ...]])
+.. class:: defaultdict(default_factory=None, /, [...])
- Returns a new dictionary-like object. :class:`defaultdict` is a subclass of the
+ Return a new dictionary-like object. :class:`defaultdict` is a subclass of the
built-in :class:`dict` class. It overrides one method and adds one writable
instance variable. The remaining functionality is the same as for the
:class:`dict` class and is not documented here.