Re: [Python-Dev] ref leak in element tree/pyexpat

2005-12-18 Thread Fredrik Lundh
Neal Norwitz wrote: > I'm not sure where the problem is, but this code leaks a reference: >parser = ET.XMLParser() ; parser.feed('text') > > You need this to set it up: > from xmlcore.etree import cElementTree as ET > > This isn't a memory leak according to valgrind. looks like it's stealin

Re: [Python-Dev] ref leak in element tree/pyexpat

2005-12-18 Thread Martin v. Löwis
Neal Norwitz wrote: > Also, I noticed several places where errors where being ignored. What > is the procedure for the element tree? Are we supposed to modify it > in the python SVN or treat it as read-only? You should add a bug report on sf.net/projects/python, and assign that to Fredrik Lundh.

[Python-Dev] ref leak in element tree/pyexpat

2005-12-17 Thread Neal Norwitz
I'm not sure where the problem is, but this code leaks a reference: parser = ET.XMLParser() ; parser.feed('text') You need this to set it up: from xmlcore.etree import cElementTree as ET This isn't a memory leak according to valgrind. Also, I noticed several places where errors where being