[issue29209] Remove old-deprecated ElementTree features

Stefan Behnel report at bugs.python.org
Sat Jan 13 12:10:33 EST 2018


Stefan Behnel <stefan_ml at behnel.de> added the comment:

Patch looks right to me.

I'd personally be ok with applying it to 3.7, but I'll leave the decision to you. Most of the removed "features" are non-controversial, except:

- "getchildren()" is probably still in use, also because it's more efficient than "list(elem)" in lxml (and has never been deprecated there), so code that supports both libraries might have preferred it

- cElementTree is probably still imported by quite a bit of code

So, this will have an impact on user code, despite any previous deprecation warnings. But it's easy to resolve in a backwards compatible way.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29209>
_______________________________________


More information about the Python-bugs-list mailing list