summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-12-08 18:36:24 (GMT)
committerSkip Montanaro <skip@pobox.com>2002-12-08 18:36:24 (GMT)
commit3bf99e3e876cb367cff34c5b9d659361b5ca9525 (patch)
tree459649bf36f5bd3ea77d0d382ee9d0571f04cb33 /Misc
parentea7f75d423342ebab09d1e12e02af6c2bab128ec (diff)
downloadcpython-3bf99e3e876cb367cff34c5b9d659361b5ca9525.zip
cpython-3bf99e3e876cb367cff34c5b9d659361b5ca9525.tar.gz
cpython-3bf99e3e876cb367cff34c5b9d659361b5ca9525.tar.bz2
Add support for binary pickles to the shelve module. In some situations
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 0e883bb..68ff040 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -440,6 +440,10 @@ Library
all dictionary methods. This eases the transition to persistent
storage for scripts originally written with dictionaries in mind.
+- shelve.open and the various classes in shelve.py now accept an optional
+ binary flag, which defaults to False. If True, the values stored in the
+ shelf are binary pickles.
+
- A new package, logging, implements the logging API defined by PEP
282. The code is written by Vinay Sajip.