Closed emilydolson closed 6 months ago
It looks like this is related to the actions of, which is calling getattr
on various parts of the tree. https://docs.python.org/3/library/rlcompleter.html
. Was able to reporduce for Python 3.8 and 3.7. Looks like behavior has changed in Python 3.9 onwards. Closing this as wontfix for now, but glad to have it documented somewhere!
I know this sounds really strange, but using tab complete (in the interactive python interpreter) appears to alter the internal state of Dendropy Tree objects. Specifically, it seems to remove all unifurcations.
Here's a simple example (
>>>
lines are code I executed, other lines are the stdout response):I am using dendropy version 4.5.2 and Python 3.7.3.
It seems that this may be fixed with newer versions of Python (it doesn't seem to happen with Python 3.9), so I'm not sure how urgent it is to fix, but it was sufficiently baffling that I at least wanted to leave a record of it somewhere where others having the same problem could find it.