mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	bug [ 1248199 ] shelve .sync operation not documented
This commit is contained in:
		
							parent
							
								
									905a01aba4
								
							
						
					
					
						commit
						bd77da6dab
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -42,6 +42,14 @@ Shelve objects support all methods supported by dictionaries.  This eases
 | 
				
			||||||
the transition from dictionary based scripts to those requiring persistent
 | 
					the transition from dictionary based scripts to those requiring persistent
 | 
				
			||||||
storage.
 | 
					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}
 | 
					\subsection{Restrictions}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\begin{itemize}
 | 
					\begin{itemize}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue