summaryrefslogtreecommitdiffstats
path: root/Lib/shelve.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove imports of 'warnings' that are no longer needed in dummy_thread,Brett Cannon2008-08-171-1/+0
| | | | filecmp, and shelve.
* Remove dict.has_key() usage in the shelve module to silence warnings under -3.Brett Cannon2008-08-041-3/+3
|
* Issue 1592: Better error reporting for operations on closed shelves.Raymond Hettinger2008-07-251-1/+11
|
* Revert part of r60927 which made invalid assumptions about the API offered ↵Raymond Hettinger2008-02-251-3/+3
| | | | by db modules.
* Update more instances of has_key().Raymond Hettinger2008-02-211-3/+3
|
* Bug #1339007: Shelf objects now don't raise an exception in theirGeorg Brandl2006-06-141-0/+3
| | | | __del__ method when initialization failed.
* Removed deprecated method arguments from the shelve module.Raymond Hettinger2004-12-051-16/+7
|
* Fixup bare try/except.Raymond Hettinger2003-05-271-1/+1
|
* SF 740055: optional argument protocol in shelve.open is ignoredRaymond Hettinger2003-05-201-1/+1
| | | | | * added the missing parameter * put optional parameters in correct positional order
* Whitespace normalization.Tim Peters2003-04-241-1/+1
|
* Patch #553171: Add writeback parameter. Also add protocol parameter.Martin v. Löwis2003-04-191-19/+80
|
* flesh out open() docstringSkip Montanaro2003-01-211-1/+7
|
* self.binary -> self._binary to remove it from the public interface -Skip Montanaro2002-12-081-2/+2
| | | | suggestion by Raymond Hettinger.
* Add support for binary pickles to the shelve module. In some situationsSkip Montanaro2002-12-081-8/+9
| | | | | | | | this can result in significantly smaller files. All classes as well as the open function now accept an optional binary parameter, which defaults to False for backward compatibility. Added a small test suite, updated the libref documentation (including documenting the exported classes and fixing a few other nits) and added a note about the change to Misc/NEWS.
* SF patch #520382: Expand shelve.py to have a full dictionary interfaceRaymond Hettinger2002-11-151-1/+3
| | | | | and add a mixin to UserDict.py to make it easier to implement a full dictionary interface.
* Patch #624936: Implement __contains__.Martin v. Löwis2002-10-181-1/+4
|
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+1
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* Whitespace normalization.Tim Peters2001-01-151-98/+98
|
* Untabify to pass the -tt test.Fred Drake2000-02-101-109/+109
|
* Patch by Paul Sokolovsky to support the get() method.Guido van Rossum1999-08-111-0/+5
|
* Give in to tabnanny.Guido van Rossum1998-04-061-5/+5
|
* Don't write "if self.dict: self.dict.close()"; just writeGuido van Rossum1998-03-261-2/+1
| | | | | | "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...
* Make close(), and hence __del__(), robust in the light of the worldGuido van Rossum1997-12-091-3/+6
| | | | being destroyed already.
* Use cPickle and cStringIO when available.Guido van Rossum1997-06-061-20/+30
|
* Added a 'sync' method to shelve. If the underlying database does not have a ↵Roger E. Masse1997-03-251-0/+4
| | | | | | sync attribute, this method silently ignores this fact. The default (bsddb's dbhash) does.
* Fix bogus len() callGuido van Rossum1996-09-101-1/+1
|
* renamed DbShelf->DbfilenameShelf;added BsdDbShelf (David Ely)Guido van Rossum1995-08-111-5/+46
|
* fix stupid bug (db should be dict)Guido van Rossum1995-02-271-3/+3
|
* minute comment changesGuido van Rossum1995-02-161-1/+1
|
* added __doc__ strings etc.Guido van Rossum1995-02-091-7/+59
|
* shelve.py: database of persistent objects, on top of pickle.py and anydbm.pyGuido van Rossum1995-01-101-0/+43
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)