Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jaen
on Dec 20, 2010
|
parent
|
context
|
favorite
| on:
Trunk.ly picks up the torch of del.icio.us
You can use ElementTree's iterparse() function (also available for lxml) to do incremental parsing while still having XPath-like functionality available for the elements you like (manually calling the .clear() method to release memory).
http://effbot.org/zone/element-iterparse.htm
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://effbot.org/zone/element-iterparse.htm