memory leak

Fredrik Lundh fredrik at
Tue Dec 21 17:41:17 CET 2004

Daniel Wheeler wrote:

> Can python leak memory even if the reference count for all the objects is not increasing?


> For example:
> for i in range(N):
>         print ref_count_all_objects()
>         do_something()
> and every iteration the ref count is constant but the memory usage is increasing. What are the 
> likely problems?

leaking extension modules?  it's pretty much impossible to say, without
knowing more about "do_something".  what does it do?  what kind of
Python modules is it using?  what extension modules are involved?


More information about the Python-list mailing list