[issue24287] Let ElementTree prolog include comments and processing instructions

Martin Panter report at bugs.python.org
Tue May 26 03:25:51 CEST 2015


Martin Panter added the comment:

The ElementTree class imitates or wraps many methods of the Element class. Since Element.append() and remove() already exist and act on children of the element, I think the new ElementTree methods should be named differently. Maybe something like prolog_append() and prolog_remove()? Or prologue_append() depending on your spelling preferences :P

Also, maybe the new write() calls should add newlines.

----------
nosy: +vadmium

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


More information about the Python-bugs-list mailing list