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
ac0675cc
Commit
ac0675cc
authored
Dec 18, 2011
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small clarification in docstring of dict.update(): the positional argument is not required.
parent
6fbd525e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Objects/dictobject.c
Objects/dictobject.c
+3
-3
No files found.
Objects/dictobject.c
View file @
ac0675cc
...
...
@@ -1973,9 +1973,9 @@ PyDoc_STRVAR(popitem__doc__,
2-tuple; but raise KeyError if D is empty."
);
PyDoc_STRVAR
(
update__doc__
,
"D.update(
E,
**F) -> None. Update D from dict/iterable E and F.
\n
"
"If E has a .keys() method, does: for k in E: D[k] = E[k]
\n
\
If E lacks .keys() method, does: for (k, v) in E: D[k] = v
\n
\
"D.update(
[E, ]
**F) -> None. Update D from dict/iterable E and F.
\n
"
"If E
present and
has a .keys() method, does: for k in E: D[k] = E[k]
\n
\
If E
present and
lacks .keys() method, does: for (k, v) in E: D[k] = v
\n
\
In either case, this is followed by: for k in F: D[k] = F[k]"
);
PyDoc_STRVAR
(
fromkeys__doc__
,
...
...
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