Guido van Rossum
65e5399081
Don't write "if self.dict: self.dict.close()"; just write
...
"self.dict.close()" and ignore the exception. The "if self.dict:"
part would be calculated through len(self.dict.keys()), which is very
expensive for a large dictionary...
1998-03-26 22:12:22 +00:00
Guido van Rossum
6599fb0917
Make close(), and hence __del__(), robust in the light of the world
...
being destroyed already.
1997-12-09 14:18:33 +00:00
Guido van Rossum
914c938cc5
Use cPickle and cStringIO when available.
1997-06-06 21:12:45 +00:00
Roger E. Masse
4fc7067055
Added a 'sync' method to shelve. If the underlying database does not have a sync
...
attribute, this method silently ignores this fact. The default (bsddb's dbhash) does.
1997-03-25 16:06:03 +00:00
Guido van Rossum
5f8ea10bc2
Fix bogus len() call
1996-09-10 17:39:56 +00:00
Guido van Rossum
abad1cc647
renamed DbShelf->DbfilenameShelf;added BsdDbShelf (David Ely)
1995-08-11 14:19:16 +00:00
Guido van Rossum
cebfa70a79
fix stupid bug (db should be dict)
1995-02-27 13:15:29 +00:00
Guido van Rossum
256cbd7487
minute comment changes
1995-02-16 16:30:50 +00:00
Guido van Rossum
cc6764c1ba
added __doc__ strings etc.
1995-02-09 17:18:10 +00:00
Guido van Rossum
a48061a580
shelve.py: database of persistent objects, on top of pickle.py and anydbm.py
...
pickle.py: new low-level persistency module (used to be called flatten)
dbmac.py: stupid dbm clone for the Mac
anydbm.py: generic dbm interface (should be extended to support gdbm)
1995-01-10 00:31:14 +00:00