From 4eef28adde8d1b09dda10b1f6c4f8f896a2b9393 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sat, 26 Sep 2020 11:18:12 -0400 Subject: Fixed a bug that inconsistently moved elements over when passing a Tag, rather than a list, into Tag.extend(). [bug=1885710] --- doc/source/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/source') diff --git a/doc/source/index.rst b/doc/source/index.rst index 76a32e9..ec3add9 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1915,8 +1915,8 @@ like calling ``.append()`` on a Python list:: ------------ Starting in Beautiful Soup 4.7.0, ``Tag`` also supports a method -called ``.extend()``, which works just like calling ``.extend()`` on a -Python list:: +called ``.extend()``, which adds every element of a list to a ``Tag``, +in order:: soup = BeautifulSoup("Soup", 'html.parser') soup.a.extend(["'s", " ", "on"]) -- cgit v1.2.3