Message316969
| Author | stevoisiak |
|---|---|
| Recipients | stevoisiak |
| Date | 2018-05-17.17:45:56 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1526579156.22.0.682650639539.issue33561@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-05-17 17:45:56 | stevoisiak | set | recipients: + stevoisiak |
| 2018-05-17 17:45:56 | stevoisiak | set | messageid: <1526579156.22.0.682650639539.issue33561@psf.upfronthosting.co.za> |
| 2018-05-17 17:45:56 | stevoisiak | link | issue33561 messages |
| 2018-05-17 17:45:56 | stevoisiak | create | |