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
fb501123
Commit
fb501123
authored
Feb 28, 2010
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#8030: more docstring fix for builtin types.
parent
613c7a54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Objects/dictobject.c
Objects/dictobject.c
+2
-2
Objects/listobject.c
Objects/listobject.c
+1
-1
Objects/tupleobject.c
Objects/tupleobject.c
+4
-4
No files found.
Objects/dictobject.c
View file @
fb501123
...
...
@@ -2327,9 +2327,9 @@ dict_iter(PyDictObject *dict)
}
PyDoc_STRVAR
(
dictionary_doc
,
"dict() -> new empty dictionary
.
\n
"
"dict() -> new empty dictionary
\n
"
"dict(mapping) -> new dictionary initialized from a mapping object's
\n
"
" (key, value) pairs
.
\n
"
" (key, value) pairs
\n
"
"dict(iterable) -> new dictionary initialized as if via:
\n
"
" d = {}
\n
"
" for k, v in iterable:
\n
"
...
...
Objects/listobject.c
View file @
fb501123
...
...
@@ -2536,7 +2536,7 @@ static PySequenceMethods list_as_sequence = {
};
PyDoc_STRVAR
(
list_doc
,
"list() -> new list
\n
"
"list() -> new
empty
list
\n
"
"list(iterable) -> new list initialized from iterable's items"
);
...
...
Objects/tupleobject.c
View file @
fb501123
...
...
@@ -681,10 +681,10 @@ tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR
(
tuple_doc
,
"tuple() ->
an empty tuple
\n
"
"tuple(sequence) -> tuple initialized from sequence's items
\n
"
"
\n
"
"
If the argument is a tuple, the return value is the same object."
);
"tuple() ->
empty tuple
\n
\
tuple(iterable) -> tuple initialized from iterable's items
\n
\
\n
\
If the argument is a tuple, the return value is the same object."
);
static
PySequenceMethods
tuple_as_sequence
=
{
(
lenfunc
)
tuplelength
,
/* sq_length */
...
...
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