From: Benjamin Peterson Date: Tue, 14 Jan 2014 04:56:05 +0000 (-0500) Subject: correct defaultdict signature in docstring (closes #20250) X-Git-Tag: v2.7.8~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06e486c2d341df95cd8257564b89870679206c91;p=python correct defaultdict signature in docstring (closes #20250) Patch from Andrew Barnert. --- diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 26d878344e..bcdffcba92 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -1612,11 +1612,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 */