Skip to content

Commit f3261b5

Browse files
fwjmathtscrim
andauthored
Update src/sage/combinat/abstract_tree.py
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
1 parent 6dc2077 commit f3261b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sage/combinat/abstract_tree.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,11 +2198,11 @@ def __getitem__(self, idx):
21982198

21992199
def _require_mutable(self):
22002200
"""
2201-
Internal function. Although the general usage of abstract tree is often
2202-
in a non-mutable way, mutable usage also exists, especially through
2203-
abstract clonable trees. This would affect precomputed number such as
2204-
_node_number. This function clears out the precomputed values when
2205-
there is a mutable usage.
2201+
Check that ``self`` is mutable and clear the ``_node_number`` parameter.
2202+
2203+
The mutation could affect a precomputed ``_node_number``,
2204+
and so we clear this when this is called, which is done in
2205+
preparation for mutating the tree.
22062206
22072207
Values cleared:
22082208

0 commit comments

Comments
 (0)