diff options
author | Georg Brandl <georg@python.org> | 2005-08-25 22:40:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-25 22:40:21 (GMT) |
commit | a74a655d816399e1168680c20daff3032665450d (patch) | |
tree | 25073452608f5cfc2e1442e69dc45e48a9440c0f | |
parent | 296681e105e0c1a9b3f42fc540cd2a982665da8c (diff) | |
download | cpython-a74a655d816399e1168680c20daff3032665450d.zip cpython-a74a655d816399e1168680c20daff3032665450d.tar.gz cpython-a74a655d816399e1168680c20daff3032665450d.tar.bz2 |
backport bug [ 1248199 ] shelve .sync operation not documented
-rw-r--r-- | Doc/lib/libshelve.tex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/libshelve.tex b/Doc/lib/libshelve.tex index e369c2a..f17b82c 100644 --- a/Doc/lib/libshelve.tex +++ b/Doc/lib/libshelve.tex @@ -43,6 +43,14 @@ Shelve objects support all methods supported by dictionaries. This eases the transition from dictionary based scripts to those requiring persistent storage. +One additional method is supported: +\begin{methoddesc}[Shelf]{sync}{} +Write back all entries in the cache if the shelf was opened with +\var{writeback} set to \var{True}. Also empty the cache and synchronize +the persistent dictionary on disk, if feasible. This is called automatically +when the shelf is closed with \method{close()}. +\end{methoddesc} + \subsection{Restrictions} \begin{itemize} |