File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -454,11 +454,11 @@ current position in the file represented as number of bytes from the beginning
454454of the file when in binary mode and an opaque number when in text mode.
455455
456456To change the file object's position, use
457- :meth: `f.seek(offset, whence) <io.IOBase.seek> `. The position is computed
458- from  adding *offset * to a reference point; the reference point is selected by
459- the  *whence * argument.  A *whence * value of 0 measures from the beginning
460- of the  file, 1 uses the current file position, and 2 uses the end of the file
461- as the  reference point. *whence * can be omitted and defaults to 0, using the
457+ :meth: `f.seek(offset, whence) <io.IOBase.seek> `. The position is computed from 
458+ adding *offset * to a reference point; the reference point is selected by the 
459+ *whence * argument.  A *whence * value of 0 measures from the beginning of the 
460+ file, 1 uses the current file position, and 2 uses the end of the file as the 
461+ reference point. *whence * can be omitted and defaults to 0, using the
462462beginning of the file as the reference point. ::
463463
464464   >>> f = open('workfile', 'rb+') 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments