On Oct 3, 2006, at 11:42 AM, Simen Haugen wrote:
I thought that once a cursor went out of scope, it would be collected
(or when the gc kicks in. I also tried to run the gc manually, but
they
still didn't get collected). I could of course change my
get_connection
function to return an old cursor instead of creating a new one each
time.
With the test you provided there are no leaks.
OK, so then this sounds like a combination of Python needing to GC
better, and the app not creating multiple cursors when they aren't
needed. BTW, why do you need multiple cursor objects?
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users