Steven Vascellaro <[email protected]> added the comment:
Alternatively, the most intuitive solution would be to give `Element` an
explicit `__str__` method.
The current behavior of `str(Element)` is to return the object's location in
memory.
```
from xml.etree import ElementTree
xml = ElementTree.Element('Person', Name='John')
print(str(xml))
# Output: <Element 'Person' at 0x028575D0>
```
Unfortunately, changing this behavior could cause issues with backwards
compatibility.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33561>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com