summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2021-12-21 16:39:49 -0500
committerLeonard Richardson <leonardr@segfault.org>2021-12-21 16:39:49 -0500
commita9abf1b4a355959fd2410e7384dd2ba83a9f4e39 (patch)
tree05e47606809d434f601883f8cf3206285d092a33 /doc
parent695e4fde7743ecf1155dc9311bf48e9a47da92f7 (diff)
Added a bit about not modifying the .contents list directly.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 4663e25..caa46c9 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -661,6 +661,12 @@ children using the ``.children`` generator::
print(child)
# The Dormouse's story
+If you want to modify a tag's children, use the methods described in
+`Modifying the tree`_. Don't modify the the ``.contents`` list
+directly: that can lead to problems that are subtle and difficult to
+spot.
+
+
``.descendants``
^^^^^^^^^^^^^^^^