diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-01-14 04:56:05 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-01-14 04:56:05 (GMT) |
commit | 9cb33b7d0318e739024eb4adf5e7e2c26feaabaf (patch) | |
tree | 8d424f0c89d2e3a9c8274024f0356e1bd07c9c53 /Modules/_collectionsmodule.c | |
parent | 5688222907583833837f2f0e92205f17fb92d436 (diff) | |
download | cpython-9cb33b7d0318e739024eb4adf5e7e2c26feaabaf.zip cpython-9cb33b7d0318e739024eb4adf5e7e2c26feaabaf.tar.gz cpython-9cb33b7d0318e739024eb4adf5e7e2c26feaabaf.tar.bz2 |
correct defaultdict signature in docstring (closes #20250)
Patch from Andrew Barnert.
Diffstat (limited to 'Modules/_collectionsmodule.c')
-rw-r--r-- | Modules/_collectionsmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index c6c7983..3cf4764 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -1625,11 +1625,13 @@ defdict_init(PyObject *self, PyObject *args, PyObject *kwds) } 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 */ |