[ python-Bugs-1516078 ] dbhash __len__ not reliable

SourceForge.net noreply at sourceforge.net
Tue Jul 4 00:12:16 CEST 2006


Bugs item #1516078, was opened at 2006-07-02 21:12
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1516078&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: cmorvant (chrismorvant)
Assigned to: Nobody/Anonymous (nobody)
Summary: dbhash __len__ not reliable

Initial Comment:
Python Version 2.4.3
OS Windows XP

When I open a db file in read only mode('r') 
the 'len' method will only work once.  After this it 
will return only 0.  Using anydbm on my windows box 
defaults to dbhash(bsddb).  This only occurs with 
dbhash(dumbdbm and dbm on Unix work fine).  The 
output of the sample code is "2 0 dbhash".

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

>Comment By: A.M. Kuchling (akuchling)
Date: 2006-07-03 18:12

Message:
Logged In: YES 
user_id=11375

Can you please provide a small test script that demonstrates
the problem?  When I try opening a dbhash database and
calling len(), it returns the correct results.



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

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


More information about the Python-bugs-list mailing list