]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF Bug 645777: list.extend() works with any iterable and is no longer
authorRaymond Hettinger <python@rcn.com>
Sun, 29 Dec 2002 05:59:09 +0000 (05:59 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 29 Dec 2002 05:59:09 +0000 (05:59 +0000)
experimental.

Doc/lib/libstdtypes.tex
Objects/listobject.c

index 2b3685a788716b2b6cd264d3a29de8941b42c8d4..9a6006a5287e9a39ff47e707545fa0134adba172 100644 (file)
@@ -938,9 +938,7 @@ Notes:
   no longer works in Python 2.0.  Use of this misfeature has been
   deprecated since Python 1.4.
 
-\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}.
index c035808ac430bcbe7ba58e7000fff8822f185b24..c53b63270ef877d75a12c76151a0f774da28dc19 100644 (file)
@@ -1640,7 +1640,7 @@ list_nohash(PyObject *self)
 static char append_doc[] =
 "L.append(object) -- append object to end";
 static char extend_doc[] =
-"L.extend(list) -- extend list by appending list elements";
+"L.extend(iterable) -- extend list by appending elements from the iterable";
 static char insert_doc[] =
 "L.insert(index, object) -- insert object before index";
 static char pop_doc[] =