delph-in / pydelphin

Python libraries for DELPH-IN
https://pydelphin.readthedocs.io/
MIT License
79 stars 27 forks source link

Give _parent attributes in delphin.derivation a public accessor #245

Closed goodmami closed 4 years ago

goodmami commented 5 years ago

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.