Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9cb33b7d
Commit
9cb33b7d
authored
Jan 13, 2014
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct defaultdict signature in docstring (closes #20250)
Patch from Andrew Barnert.
parent
56882229
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Modules/_collectionsmodule.c
Modules/_collectionsmodule.c
+3
-1
No files found.
Modules/_collectionsmodule.c
View file @
9cb33b7d
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment