SF patch #520382: Expand shelve.py to have a full dictionary interface

and add a mixin to UserDict.py to make it easier to implement a full
dictionary interface.
This commit is contained in:
Raymond Hettinger 2002-11-15 06:46:14 +00:00
parent 3a7f405f5b
commit 7994716b6b
5 changed files with 104 additions and 2 deletions

View file

@ -33,6 +33,10 @@ list = d.keys() # a list of all existing keys (slow!)
d.close() # close it
\end{verbatim}
In addition to the above, shelve supports all methods that are
supported by dictionaries. This eases the transition from dictionary
based scripts to those requiring persistent storage.
Restrictions:
\begin{itemize}