[issue16089] _elementtree causes segfault in GC

Stefan Krah report at bugs.python.org
Tue Oct 2 11:00:58 CEST 2012


Stefan Krah added the comment:

Nice find. -- The Python version does this:

  _Element = _ElementInterface = Element


So (naively) I would think the same should be done for the C version
after importing Element.


But then one runs into the object layouts conflict that you mentioned.

On the other hand, in the original documentation direct use of
_ElementInterface was discouraged:

http://effbot.org/zone/pythondoc-elementtree-ElementTree.htm#elementtree.ElementTree._ElementInterface-class

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16089>
_______________________________________


More information about the Python-bugs-list mailing list