parameters: (self, pos, mode = 0)
docstring: Set the file's current position.
  
          The mode argument is optional and defaults to 0 (absolute file
          positioning); other values are 1 (seek relative to the current
          position) and 2 (seek relative to the file's end).
  
          There is no return value.
docstring_summary: Set the file's current position.
docstring_tokens: Set the file s current position .
function: def seek(self, pos, mode = 0):
          """Set the file's current position.
  
          The mode argument is optional and defaults to 0 (absolute file
          positioning); other values are 1 (seek relative to the current
          position) and 2 (seek relative to the file's end).
  
          There is no return value.
          """
          _complain_ifclosed(self.closed)
          if self.buflist:
              self.buf += ''.join(self.buflist)
              self.buflist = []
          if mode == 1:
              pos += self.pos
          elif mode == 2:
              pos += self.len
          self.pos = max(0, pos)
function_tokens: def seek ( self , pos , mode = 0 ) : _complain_ifclosed ( self . closed ) if self . buflist : self . buf += '' . join ( self . buflist ) self . buflist = [ ] if mode == 1 : pos += self . pos elif mode == 2 : pos += self . len self . pos = max ( 0 , pos )