[issue28237] In xml.etree.ElementTree bytes tag or attributes raises on serialization
Stefan Behnel
report at bugs.python.org
Tue Sep 10 12:09:54 EDT 2019
Stefan Behnel <stefan_ml at behnel.de> added the comment:
Arguably, writing out "b'x'" as attribute name instead of raising an exception isn't ideal. However, OTOH, I think it's reasonable to accept anything that is serialisable as a string, not just strings. That makes it difficult to draw a line.
In any case, it's ok for ElementTree to not allow bytes in general.
I'll close this issue, because I don't think it's worth being called a bug.
----------
nosy: +scoder
resolution: -> wont fix
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28237>
_______________________________________
More information about the Python-bugs-list
mailing list