Author ocean-city
Recipients ocean-city, roland
Date 2008-10-10.21:26:37
SpamBayes Score 6.30351e-09
Marked as misclassified No
Message-id <>
Minimum script to reproduce this issue is "" I've attached.
And I think this issue can be fixed with
"fix_cross_boundary_on_ElementTree.patch". I'll attach the test case for
this issue as "". (I wanted to intergrate test into, but it uses doctest which I don't know about)

// Cause of issue

TreeBuilder#start() and TreeBuilder#end() are handlers driven by
self._parser.feed(data) in, and iterparse stores
elements returned by these functions.

But element is not initialized at the moment. No one can determine
element.text when start tag is found, and element.tail when end tag is
found vise versa. We can say "the element is initialized" when
encountered next element or TreeBuilder is closed.

So, iterparse's _events queue may contain uninitialized elements, so my
patch waits until the element will be initialized.
Date User Action Args
2008-10-10 21:26:39ocean-citysetrecipients: + ocean-city, roland
2008-10-10 21:26:39ocean-citysetmessageid: <>
2008-10-10 21:26:37ocean-citylinkissue4100 messages
2008-10-10 21:26:37ocean-citycreate