Message194730
| Author |
pitrou |
| Recipients |
eli.bendersky, flox, jcea, pitrou, python-dev, scoder |
| Date |
2013年08月09日.13:51:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1376056264.77.0.713332650019.issue17741@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|
History
|
|---|
| 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: <1376056264.77.0.713332650019.issue17741@psf.upfronthosting.co.za> |
| 2013年08月09日 13:51:04 | pitrou | link | issue17741 messages |
| 2013年08月09日 13:51:04 | pitrou | create |
|