It's using a number of extension modules:

    scipy
    Numeric
    pysparse

These are all c extensions and could all be leaking memory independently of course.

However, I would like to understand first if pure python can leak without the reference count increasing?

On Dec 21, 2004, at 11:41 AM, Fredrik Lundh wrote:

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>



--
http://mail.python.org/mailman/listinfo/python-list



-------------------------------------
Daniel Wheeler
Telephone: (301) 975-8358

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to