Some users are traversing derivation trees with node._parent, which is not part of the public API. Since this appears to be useful, it would be best to add a supported accessor for node parents. The obvious choice is a parent property, since parent is already an initialization parameter for these classes.
Some users are traversing derivation trees with
node._parent
, which is not part of the public API. Since this appears to be useful, it would be best to add a supported accessor for node parents. The obvious choice is aparent
property, sinceparent
is already an initialization parameter for these classes.