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 tebeka
Recipients tebeka
Date 2008-04-22.17:52:05
SpamBayes Score 0.07868831
Marked as misclassified No
Message-id <1208886727.18.0.175464776053.issue2669@psf.upfronthosting.co.za>
In-reply-to
Content
>>> db = bsddb.btopen("/tmp/n")
>>> for i in range(5):
	db[str(i)] = None
>>> db
{'1': '', '0': '', '3': '', '2': '', '4': ''}
>>> for k in db.iterkeys():
	print k
	del db[k]
0
>>> 

The Python "dict" object raises a RuntimeError when modifying the
dictionary during iteration, the database should do the same.
History
Date User Action Args
2008-04-22 17:52:07tebekasetspambayes_score: 0.0786883 -> 0.07868831
recipients: + tebeka
2008-04-22 17:52:07tebekasetspambayes_score: 0.0786883 -> 0.0786883
messageid: <1208886727.18.0.175464776053.issue2669@psf.upfronthosting.co.za>
2008-04-22 17:52:06tebekalinkissue2669 messages
2008-04-22 17:52:05tebekacreate