[Python-checkins] python/dist/src/Doc/lib libshelve.tex,1.22,1.23

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Fri Aug 26 00:40:27 CEST 2005


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31111/Doc/lib

Modified Files:
	libshelve.tex 
Log Message:
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.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- libshelve.tex	1 Jan 2005 00:28:43 -0000	1.22
+++ libshelve.tex	25 Aug 2005 22:40:16 -0000	1.23
@@ -42,6 +42,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}



More information about the Python-checkins mailing list