parameters: (self, pos, whence=0)
docstring: Seek to specified position into the chunk.
          Default position is 0 (start of chunk).
          If the file is not seekable, this will result in an error.
docstring_summary: Seek to specified position into the chunk.
          Default position is 0 (start of chunk).
          If the file is not seekable, this will result in an error.
docstring_tokens: Seek to specified position into the chunk . Default position is 0 ( start of chunk ) . If the file is not seekable this will result in an error .
function: def seek(self, pos, whence=0):
          """Seek to specified position into the chunk.
          Default position is 0 (start of chunk).
          If the file is not seekable, this will result in an error.
          """
  
          if self.closed:
              raise ValueError, "I/O operation on closed file"
          if not self.seekable:
              raise IOError, "cannot seek"
          if whence == 1:
              pos = pos + self.size_read
          elif whence == 2:
              pos = pos + self.chunksize
          if pos < 0 or pos > self.chunksize:
              raise RuntimeError
          self.file.seek(self.offset + pos, 0)
          self.size_read = pos
function_tokens: def seek ( self , pos , whence = 0 ) : if self . closed : raise ValueError , "I/O operation on closed file" if not self . seekable : raise IOError , "cannot seek" if whence == 1 : pos = pos + self . size_read elif whence == 2 : pos = pos + self . chunksize if pos < 0 or pos > self . chunksize : raise RuntimeError self . file . seek ( self . offset + pos , 0 ) self . size_read = pos