[issue28236] In xml.etree.ElementTree Element can be created with empty and None tag

Gordon P. Hemsley report at bugs.python.org
Thu Dec 21 17:22:19 EST 2017


Gordon P. Hemsley <gphemsley at gphemsley.org> added the comment:

I decided to take a look at this, since it seems easy...

At first glance, this would appear to be a straightforward change--the docs state in multiple places that Element() takes a string as its tag argument.

But it turns out that a lot of internal functionality depends on passing in non-strings as the tag value.

----------
nosy: +gphemsley

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28236>
_______________________________________


More information about the Python-bugs-list mailing list