Message194730
> Antoine, is there a reason why you had to add this _setevents() method
> to the XMLParser, instead of making the IncrementalParser an
> IncrementalTreeBuilder?
The point is not to build a tree of potentially unbounded size (think XMPP). The point is to yield events in a non-blocking way (iterparse() is blocking, which makes it useless for non-blocking applications).
An IncrementalTreeBuilder wouldn't have much point IMO. It is not more costly to accumulate a string and parse it at the end, than to progressively build a growing XML tree. |
|
| Date |
User |
Action |
Args |
| 2013-08-09 13:51:04 | pitrou | set | recipients:
+ pitrou, jcea, scoder, eli.bendersky, flox, python-dev |
| 2013-08-09 13:51:04 | pitrou | set | messageid: <[email protected]> |
| 2013-08-09 13:51:04 | pitrou | link | issue17741 messages |
| 2013-08-09 13:51:04 | pitrou | create | |
|