True if other node is in the same tree as this node.
(self, other: Self)
| 656 | raise KeyError(key) |
| 657 | |
| 658 | def same_tree(self, other: Self) -> bool: |
| 659 | """True if other node is in the same tree as this node.""" |
| 660 | return self.root is other.root |
| 661 | |
| 662 | |
| 663 | AnyNamedNode = TypeVar("AnyNamedNode", bound="NamedNode") |
no outgoing calls