Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31019/Doc/lib Modified Files: Tag: release24-maint libshelve.tex Log Message: backport bug [ 1248199 ] shelve .sync operation not documented Index: libshelve.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libshelve.tex,v retrieving revision 1.20.16.1 retrieving revision 1.20.16.2 diff -u -d -r1.20.16.1 -r1.20.16.2 --- libshelve.tex 1 Jan 2005 00:34:53 -0000 1.20.16.1 +++ libshelve.tex 25 Aug 2005 22:40:21 -0000 1.20.16.2 @@ -43,6 +43,14 @@ 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}