How do I begin debugging a python memory leak?

Rainer Grimm r.grimm at science-computing.de
Fri Sep 18 16:06:52 EDT 2009


On Sep 18, 5:42 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> Rainer Grimm <r.gr... at science-computing.de> writes:
> > have a look at valgrind.
>
> Have you actually used that on Python?
Not with python as far I can remember. But often with C++ executables,
as i mentioned it.
I you look at
http://valgrind.org/info/
there stands:
Valgrind has been used on programs written partly or entirely in C, C+
+, Java, Perl, Python, assembly code, Fortran, Ada, and many others.

It exists also a extension for python
http://blogs.gnome.org/jamesh/2008/03/24/python-valgrind/ , to get rid
of the false positiv errors.
So it should be worth a try.



More information about the Python-list mailing list