[XML-SIG] Unexpected memory leak in Sax + _locator
08 Feb 2002 16:24:41 +0100
"Fred L. Drake, Jr." <email@example.com> writes:
> Bernhard Herzog writes:
> > 3. Use a weak reference proxy to the parser as the argument to
> > setDocumentLocator.
> I favor this approach myself. ;-) This is the kind of thing weakrefs
> are good at, and it keeps the code as simple as possible.
> The catch, of course, is that weakrefs are only available for Python
> 2.1 and newer.
Well, for me this would be enough, and since the modules in question are
part of the standard library, this may not be much of a problem.
Not sure about the stand-alone PyXML, though. I haven't tested that one,
so I don't even know whether it has the same problem.
Intevation GmbH http://intevation.de/