xml: TypeError: write() got an unexpected keyword argument 'short_empty_elements'

Nagy László Zsolt gandalf at shopzeus.com
Fri Sep 22 09:15:05 EDT 2017


> https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.ElementTree.write
>
> The argument was added in Python 3.4. Presumably, lxml implemented the
> API before this change.
>
> Maybe this would be considered a bug by lxml. Maybe it won't.
Maybe it is not a bug, just a feature not implemented. After testing it
a bit, I realized that for my chosen method (c14n) it cannot be
specified anyway, because it must be False and actually it works that way.
>
> http://lxml.de/ links to a bug tracker and a mailing list.
>
All right, I'm subscribing to the list (I have other questions regarding
C14N)



More information about the Python-list mailing list