win32 memory usage question
Ryan
RMeek at pav.com
Wed Dec 18 12:12:44 EST 2002
Hello-
I have a growing process size, that uses code like the code I've
included below. Am I require to explicitly release memory here? I'm on
Python 2.2.2, win32 build 148.
Thanks in advance,
Ryan
import win32com.client
dom = win32com.client.Dispatch("Msxml2.DOMDocument.4.0")
dom.setProperty("SelectionLanguage", "XPath")
dom.loadXML("<event><id><eventtype>your-event</eventtype><eventtype>your-event</eventtype></id></event>")
nodes = dom.selectNodes("event/id/eventtype")
i = 0
while i < 20000:
text = nodes[0].Text
i += 1
More information about the Python-list
mailing list