[pypy-dev] which xml libraries? was (Re: PyPy 1.4 released)

Amaury Forgeot d'Arc amauryfa at gmail.com
Mon Nov 29 21:57:44 CET 2010

2010/11/29 Paolo Giarrusso <p.giarrusso at gmail.com>

> Inspection of the pypy process confirms a leak of file handles to the
> XML files. Whether it is GC not being invoked, a missing destructor,
> or simply because the code should release file handles, I dunno. Is
> there a way to trigger explicit GC to workaround such issues?

As usual:
    import gc

Calling gc.collect() is indeed a good idea if the code does not explicitly
close the files.

Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20101129/7859c364/attachment.html>

More information about the Pypy-dev mailing list