memory leak
Fredrik Lundh
fredrik at pythonware.com
Tue Dec 21 11:41:17 EST 2004
Daniel Wheeler wrote:
> Can python leak memory even if the reference count for all the objects is not increasing?
sure.
> 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?
</F>
More information about the Python-list
mailing list