You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from xml.etree import ElementTree as ET
parser = ET.XMLPullParser()
with open(input_filename) as fh:
i = 0
while True:
i += 1
parser.feed(fh.read(1024*1024))
for event, element in parser.read_events():
element.clear()
del element
if i % 10 == 0:
print(i)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: