[ python-Bugs-1394135 ] Deleting first item causes anydbm.first() to fail

SourceForge.net noreply at sourceforge.net
Wed Jan 11 13:19:48 CET 2006


Bugs item #1394135, was opened at 2005-12-31 15:24
Message generated for change (Comment added) made by anthonybaxter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1394135&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: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Dan Bisalputra (danbiz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Deleting first item causes anydbm.first() to fail

Initial Comment:
If the first item in a database is deleted, the first
call to anydbm.first() after the deletion causes a
DBNotFoundError exception to be raised.

The attached program causes the error on my system.  I
am currently working around the problem by calling
first() after each deletion, enclosed by a try block.

I am using Python 2.4.2 running under Windows ME.

----------------------------------------------------------------------

>Comment By: Anthony Baxter (anthonybaxter)
Date: 2006-01-11 23:19

Message:
Logged In: YES 
user_id=29957

Which backend is this using? anydbm is just a very very
simple wrapper around a bunch of different backends - I have
difficulty believing that they _all_ have the same problem. :)

----------------------------------------------------------------------

Comment By: Georg Brandl (birkenfeld)
Date: 2006-01-11 09:50

Message:
Logged In: YES 
user_id=1188172

Confirmed here (Linux, various Pythons).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1394135&group_id=5470


More information about the Python-bugs-list mailing list