commit | a703a21b486b4eb47d9873fb1c7de7008530ae93 | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Mon Nov 03 01:04:41 2003 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Mon Nov 03 01:04:41 2003 +0000 |
tree | 2a1a6c82902e4a1058595ed53741f51079d60724 | |
parent | 83c187460ead750da62b5837512492332e3ad75a [diff] |
* Use weakref's of DBCursor objects for the iterator cursors to avoid a memory leak that would've occurred for all iterators that were destroyed before having iterated until they raised StopIteration. * Simplify some code. * Add new test cases to check for the memleak and ensure that mixing iteration with modification of the values for existing keys works.