[XML-SIG] Re: cElementTree.iterparse missing text in some startevents

Fredrik Lundh fredrik at pythonware.com
Tue Jan 25 18:33:29 CET 2005


Jimmy Retzlaff wrote:

> > clearer?
>
> Yes, thanks! Just a thought... would it be better to artificially hide
> the attributes that can't be counted on in a start event or are the
> tradeoffs in doing so too ugly?

my guess is it'll either be incredibly ugly and be very inefficient, or require
major surgery and still be very inefficient (maybe a bit less "very", but a lot
slower than the current design).

> With small elements like mine and a buffer as large as 16KB then things
> will almost always be available in the start event. That'll lead learn-by-trail-
> and-error folks (i.e.,those of us who don't read :) to miss the distinction
> altogether.

well, you have to read something to find out about the "start" event (the default
is to issue "end" events only, which is almost always what you want anyway).

but of course, if lots of people end up being bitten by this, I may have to come
up with something better, but I don't have any good ideas at the moment, so things
will have to be this way in 1.0...

</F> 





More information about the XML-SIG mailing list