This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients
Date 2003-11-02.09:47:17
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=413

While I'm at it, I think there might be a memory leak in my
__iter__ and iteritems() implementation when the resulting
generator objects are destroyed without completing their
iteration (as will happen in UserDict.DictMixIn.popitem
among other things).

They add their DBCursor to _DBWithCursor._iter_cursors but
only ever delete it from that hash before a return rather
than a yield.  The solution to this should be simple: have
_closeCursors() empty the _iter_cursors hash after calling
close() on all of the cursors.  __iter__ and iteritems()
already ignore a KeyError when trying to remove their cursor
from the map when returning.
History
Date User Action Args
2007-08-23 14:18:04adminlinkissue834461 messages
2007-08-23 14:18:04admincreate