[shelve] What are the limitations? Entering too many data crashes it on my machine!

Martin v. Löwis martin at v.loewis.de
Thu Dec 26 18:04:58 EST 2002
"F. GEIGER" <fgeiger at datec.at> writes:

>   File "C:\Programme\Python21\lib\shelve.py", line 77, in __setitem__
>     self.dict[key] = f.getvalue()
> bsddb.error: (0, 'Error')

I see. I'm pretty sure you are *not* using bsddb3 here, as its errors
all have bsddb3 in their names.

Please read the code of shelve.py, it's not that long. I recommend to
use shelve.Shelf directly, passing a bsddb3 hash database.

Regards,
Martin





More information about the Python-list mailing list