[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-19 Thread Eli Bendersky
Eli Bendersky eli...@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))

[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 41a9d24d075e by Eli Bendersky in branch 'default': Issue #14849: setup Element data members to be assignable in subclasses http://hg.python.org/cpython/rev/41a9d24d075e -- nosy: +python-dev

[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-19 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- assignee: - eli.bendersky resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14849

[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-18 Thread Markus
New submission from Markus com...@gmx.ch: Example Code to reproduce: from xml.etree import ElementTree as etree class xetree: cElement = etree.Element class Element(etree.Element): def __init__(self, tag, attrib=None):

[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eli.bendersky, ezio.melotti priority: normal - release blocker stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14849

[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14849 ___