mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
3a7f405f5b
commit
7994716b6b
5 changed files with 104 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue