Bugs item #1725862, was opened at 2007-05-25 14:36 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1725862&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: None >Status: Closed >Resolution: Duplicate Priority: 5 Private: No Submitted By: Charles Hixson (quixo) Assigned to: Nobody/Anonymous (nobody) Summary: bsddb.btopen . del of record doesn't update index Initial Comment: A ram -resident database is creaed with btopen 10 records are added, keyed by sequence, value is sequence + 1 (both converted to strings). I check to ensure that all of the records have been added. I delete the first record, check the keys again, and it still works. I delete the first record, check the keys again, and it fails, thusly: python testbtopen.py ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] 0 1 2 3 4 5 6 7 8 9 0 1 ['1', '2', '3', '4', '5', '6', '7', '8', '9'] 1 2 3 4 5 6 7 8 9 Traceback (most recent call last): File "testbtopen.py", line 13, in ? i = db.first()[0] File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 269, in first File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 183, in _checkCursor _bsddb.DBNotFoundError: (-30989, 'DB_NOTFOUND: No matching key/data pair found') [EMAIL PROTECTED]:~/projects/Python/bsddb$ python testbtopen.py ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] 0 1 2 3 4 5 6 7 8 9 0 1 ['1', '2', '3', '4', '5', '6', '7', '8', '9'] 1 2 3 4 5 6 7 8 9 Traceback (most recent call last): File "testbtopen.py", line 13, in ? i = db.first()[0] File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 269, in first File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 183, in _checkCursor _bsddb.DBNotFoundError: (-30989, 'DB_NOTFOUND: No matching key/data pair found') ---------------------------------------------------------------------- >Comment By: Neal Norwitz (nnorwitz) Date: 2007-05-25 19:39 Message: Logged In: YES user_id=33168 Originator: NO Duplicate of 1725856. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1725862&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com