[New-bugs-announce] [issue2669] bsddb iterkeys sliently fails when database modified during iteration

Miki Tebeka report at bugs.python.org
Tue Apr 22 19:52:07 CEST 2008


New submission from Miki Tebeka <miki.tebeka at gmail.com>:

>>> 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.

----------
components: Library (Lib)
messages: 65676
nosy: tebeka
severity: normal
status: open
title: bsddb iterkeys sliently fails when database modified during iteration
type: behavior
versions: Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2669>
__________________________________


More information about the New-bugs-announce mailing list