Stefan Behnel added the comment:

I gave the implementation a try and attached an incomplete patch. Some tests 
are failing.

It turns out that it's not entirely easy to do this. As Antoine noticed, the 
hack in the C implementation of the TreeBuilder makes it tricky to integrate 
with other targets, specifically when intercepting events that the tree builder 
needs . That's a more general bug and it currently gets in the way.

Anyway, here's how it should eventually look like.

----------
Added file: http://bugs.python.org/file31211/iterparse_TreeEventBuilder.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to