dumbdbm bug fixed
Oleg Broytmann
phd at phd.pp.ru
Tue Dec 12 07:23:01 EST 2000
Hi!
Any chance you'll create and post a patch to python.sourceforge.net?
On Sat, 9 Dec 2000, Amos Newcombe wrote:
> In dumbdbm.py (v 2.0) it says
> >- seems to contain a bug when updating...
>
> The bug I found was that the length of an item in the index (.dir)
> file doesn't get updated when the record in the .dat file does.
>
> The fix is simple. Just call self._commit() at the end of
> _Database.__setitem__(), so it looks like this.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list