Joe Stuart added the comment:
It looks like it's being called from the c extension. I would think it should
still throw an exception though?
>>> e = etree.Element
>>> e.ham = 1
Traceback (most recent call last):
File "", line 1, in
TypeError: can't set
Joe Stuart added the comment:
At the end of ElementTree all of the c accelerators are being imported and it
looks like only XMLParser is being used. Here is a patch that only imports
XMLParser.
--
keywords: +patch
Added file: http://bugs.python.org/file30298/ElementTree.patch
Changes by Joe Stuart :
Removed file: http://bugs.python.org/file30298/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17989>
___
___
Python-bugs-list m
Joe Stuart added the comment:
This patch should fix the issue of the classes being overwritten by the c
accelerated ones.
--
Added file: http://bugs.python.org/file30300/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17
Changes by Joe Stuart :
Removed file: http://bugs.python.org/file30300/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17989>
___
___
Python-bugs-list m
Joe Stuart added the comment:
Forgot to update the XMLParser() assignment.
--
Added file: http://bugs.python.org/file30301/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17
Joe Stuart added the comment:
Looks like a typo in arbitrary.
AttributeError: Can't set arbitraty attributes on Element
--
___
Python tracker
<http://bugs.python.org/is