[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member
Eli Bendersky
report at bugs.python.org
Sun May 20 05:10:22 CEST 2012
Eli Bendersky <eliben at gmail.com> added the comment:
Here's a simpler testcase:
import xml.etree.ElementTree as ET
class XElement(ET.Element):
def __init__(self, tag, attrib={}):
ET.Element.__init__(self, tag, attrib)
e = XElement('test')
e.text = 'failure'
print(ET.tostring(e))
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14849>
_______________________________________
More information about the Python-bugs-list
mailing list