[lxml-dev] [Fwd: Re: (no subject)]

Stefan Behnel stefan_ml at behnel.de
Sun May 4 11:02:49 CEST 2008


[Forwarding to the list...]
From: <mharper3 at uiuc.edu>

Also, adding

elem.clear()

into the loop still eventually leads to a memory error, just much later. This
should be clearing every element, so I'm not quite sure if I understand what
clear() actually does. Should I segment the file into smaller pieces so that
the tree is unloaded as each piece finishes?

I apologize if my questions are trivial. I appreciate your responses greatly.

 -- Marc


More information about the lxml-dev mailing list