[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

Stefan Behnel report at bugs.python.org
Sun May 14 11:59:15 EDT 2017


Stefan Behnel added the comment:

Looks good to me (didn't test it).

Note that getchildren() is not deprecated in lxml because it's actually the fastest way to build a list of the children. It's faster than list(element) because it avoids the Python (C-level) iteration overhead. However, that probably wouldn't be substantial enough to merit adding it if it wasn't there already. I'm ok with deprecating the method in ET. It's redundant there.

----------

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


More information about the Python-bugs-list mailing list