]> granicus.if.org Git - python/commit
* Use weakref's of DBCursor objects for the iterator cursors to avoid a
authorGregory P. Smith <greg@mad-scientist.com>
Mon, 3 Nov 2003 01:04:41 +0000 (01:04 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Mon, 3 Nov 2003 01:04:41 +0000 (01:04 +0000)
commita703a21b486b4eb47d9873fb1c7de7008530ae93
tree2a1a6c82902e4a1058595ed53741f51079d60724
parent83c187460ead750da62b5837512492332e3ad75a
* 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.
Lib/bsddb/__init__.py
Lib/test/test_bsddb.py
Modules/_bsddb.c