Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd77da6

Browse files
committed
bug [ 1248199 ] shelve .sync operation not documented
1 parent 905a01a commit bd77da6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/lib/libshelve.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ \section{\module{shelve} ---
4242
the transition from dictionary based scripts to those requiring persistent
4343
storage.
4444

45+
One additional method is supported:
46+
\begin{methoddesc}[Shelf]{sync}{}
47+
Write back all entries in the cache if the shelf was opened with
48+
\var{writeback} set to \var{True}. Also empty the cache and synchronize
49+
the persistent dictionary on disk, if feasible. This is called automatically
50+
when the shelf is closed with \method{close()}.
51+
\end{methoddesc}
52+
4553
\subsection{Restrictions}
4654

4755
\begin{itemize}

0 commit comments

Comments
 (0)