caesar0301 / treelib

An efficient implementation of tree data structure in python 2/3.
http://treelib.readthedocs.io/en/latest/
Other
817 stars 188 forks source link

Tree.__str__() method : #41

Closed suizokukan closed 9 years ago

suizokukan commented 9 years ago

I find convenient to use the str() method(*) on each and every Python object. Since currently there's no Tree.str() method, I suggest the following modifications. The tests with Python3 are ok.

(*) about str() : https://docs.python.org/3.4/reference/datamodel.html?highlight=__str__#object.__str__