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))
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
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
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):
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
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14849
___