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
f8bcfb13
Commit
f8bcfb13
authored
Dec 29, 2002
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF Bug 645777: list.extend() works with any iterable and is no longer
experimental.
parent
4643bd9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+1
-3
Objects/listobject.c
Objects/listobject.c
+1
-1
No files found.
Doc/lib/libstdtypes.tex
View file @
f8bcfb13
...
...
@@ -946,9 +946,7 @@ Notes:
Use of this misfeature has been deprecated since Python 1.4,
and became an error with the introduction of Python 2.0.
\item
[(2)]
Raises an exception when
\var
{
x
}
is not a list object. The
\method
{
extend()
}
method is experimental and not supported by
mutable sequence types other than lists.
\item
[(2)]
Raises an exception when
\var
{
x
}
is not an iterable object.
\item
[(3)]
Raises
\exception
{
ValueError
}
when
\var
{
x
}
is not found in
\var
{
s
}
.
...
...
Objects/listobject.c
View file @
f8bcfb13
...
...
@@ -2055,7 +2055,7 @@ list_nohash(PyObject *self)
PyDoc_STRVAR
(
append_doc
,
"L.append(object) -- append object to end"
);
PyDoc_STRVAR
(
extend_doc
,
"L.extend(
sequence) -- extend list by appending sequence elements
"
);
"L.extend(
iterable) -- extend list by appending elements from the iterable
"
);
PyDoc_STRVAR
(
insert_doc
,
"L.insert(index, object) -- insert object before index"
);
PyDoc_STRVAR
(
pop_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