[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element
Pedro Andres Aranda Gutierrez
report at bugs.python.org
Mon Jan 16 17:13:45 CET 2012
Pedro Andres Aranda Gutierrez <paaguti at gmail.com> added the comment:
Touché :-)
I was just frustrated because my XMLs never have tail or text as
attributes and I wanted to have more compact code...
On Mon, Jan 16, 2012 at 12:14 PM, patrick vrijlandt
<report at bugs.python.org> wrote:
>
> patrick vrijlandt <patrick.vrijlandt at gmail.com> added the comment:
>
> I agree the Element syntax is sometimes awkward.
>
> But how would you represent text or tail attributes within this enhanced element?
> <animal name="cat" tail="yes"> comes to mind ...
>
> ----------
> nosy: +patrick.vrijlandt
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue13796>
> _______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13796>
_______________________________________
More information about the Python-bugs-list
mailing list