Message161043
| Author |
cmn |
| Recipients |
cmn |
| Date |
2012年05月18日.10:13:18 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337335999.38.0.656009242892.issue14849@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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):
xetree.cElement.__init__(self, tag, attrib)
etree.Element = xetree.Element
e = etree.Element("test", {'foobar':'bar'})
e.text = "failure"
print(etree.tostring(e))
# will lack "failure"
So basic inheritance is broken. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月18日 10:13:19 | cmn | set | recipients:
+ cmn |
| 2012年05月18日 10:13:19 | cmn | set | messageid: <1337335999.38.0.656009242892.issue14849@psf.upfronthosting.co.za> |
| 2012年05月18日 10:13:18 | cmn | link | issue14849 messages |
| 2012年05月18日 10:13:18 | cmn | create |
|