Stefan Behnel <stefan...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue28237>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to