[issue21028] ElementTree objects should support all the same methods as Element objects

Raymond Hettinger report at bugs.python.org
Mon Mar 31 21:49:46 CEST 2014


Raymond Hettinger added the comment:

> Do you have concrete suggestions? Make the tree iterable? 
> Add all element methods to the tree, implicitly forwarding to the root? 

Yes, that is the feature request.  Add all the element methods to the elementtree object.

Implicitly forwarding to the root would be a reasonable way to do it, but that is just an implementation detail.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21028>
_______________________________________


More information about the Python-bugs-list mailing list