From 398c4ed1027d68e38e50e74ff30adca3f66d8c97 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 29 Dec 2002 05:59:09 +0000 Subject: [PATCH] SF Bug 645777: list.extend() works with any iterable and is no longer experimental. --- Doc/lib/libstdtypes.tex | 4 +--- Objects/listobject.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 2b3685a78871..9a6006a5287e 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -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}. diff --git a/Objects/listobject.c b/Objects/listobject.c index c035808ac430..c53b63270ef8 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -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[] = -- 2.47.3