mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Patch #809535: Mention behaviour of seek on text files. Backported to 2.3.
This commit is contained in:
		
							parent
							
								
									ad3fc44ccb
								
							
						
					
					
						commit
						849a972f35
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		|  | @ -1337,7 +1337,12 @@ flush the read-ahead buffer. | |||
|   \method{seek()} operations will be undone at the next write.  If the | ||||
|   file is only opened for writing in append mode (mode \code{'a'}), | ||||
|   this method is essentially a no-op, but it remains useful for files | ||||
|   opened in append mode with reading enabled (mode \code{'a+'}). | ||||
|   opened in append mode with reading enabled (mode \code{'a+'}).  If the | ||||
|   file is opened in text mode (mode \code{'t'}), only offsets returned | ||||
|   by \method{tell()} are legal.  Use of other offsets causes undefined | ||||
|   behavior. | ||||
| 
 | ||||
|   Note that not all file objects are seekable. | ||||
| \end{methoddesc} | ||||
| 
 | ||||
| \begin{methoddesc}[file]{tell}{} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis