diff options
author | Leonard Richardson <leonardr@segfault.org> | 2020-09-26 11:18:12 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2020-09-26 11:18:12 -0400 |
commit | 4eef28adde8d1b09dda10b1f6c4f8f896a2b9393 (patch) | |
tree | d7f3b1e645f4fa3afd128a5d05fce939bc36de90 /doc | |
parent | e37c55b111b6d3ece22237188ad77a1ea9cd3724 (diff) |
Fixed a bug that inconsistently moved elements over when passing
a Tag, rather than a list, into Tag.extend(). [bug=1885710]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
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("<a>Soup</a>", 'html.parser') soup.a.extend(["'s", " ", "on"]) |