New submission from Miki Tebeka <[EMAIL PROTECTED]>: >>> 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2669> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com