class_docstr: A file object providing transparent bzip2 (de)compression.
  
  A BZ2File can act as a wrapper for an existing file object, or refer
  directly to a named file on disk.
  
  Note that BZ2File provides a *binary* file interface - data read is
  returned as bytes, and data to be written should be given as bytes.
class_docstr_tok: ["A","file","object","providing","transparent","bzip2","(","de",")","compression",".","A","BZ2File","can","act","as","a","wrapper","for","an","existing","file","object",",","or","refer","directly","to","a","named","file","on","disk",".","Note","that","BZ2File","provides","a","*","binary","*","file","interface","-","data","read","is","returned","as","bytes",",","and","data","to","be","written","should","be","given","as","bytes","."]
docstr: Change the file position.
  
  The new position is specified by offset, relative to the
  position indicated by whence. Values for whence are:
  
      0: start of stream (default); offset must not be negative
      1: current stream position
      2: end of stream; offset must not be positive
  
  Returns the new file position.
  
  Note that seeking is emulated, so depending on the parameters,
  this operation may be extremely slow.
docstr_tok: ["Change","the","file","position",".","The","new","position","is","specified","by","offset",",","relative","to","the","position","indicated","by","whence",".","Values","for","whence","are",":","0",":","start","of","stream","(","default",")",";","offset","must","not","be","negative","1",":","current","stream","position","2",":","end","of","stream",";","offset","must","not","be","positive","Returns","the","new","file","position",".","Note","that","seeking","is","emulated",",","so","depending","on","the","parameters",",","this","operation","may","be","extremely","slow","."]
code: def seek(self, offset, whence=io.SEEK_SET):
      """Change the file position.
  
      The new position is specified by offset, relative to the
      position indicated by whence. Values for whence are:
  
          0: start of stream (default); offset must not be negative
          1: current stream position
          2: end of stream; offset must not be positive
  
      Returns the new file position.
  
      Note that seeking is emulated, so depending on the parameters,
      this operation may be extremely slow.
      """
      self._check_can_seek()
      return self._buffer.seek(offset, whence)
  
imports: from builtins import open
  import io
  import os
  import _compression
  from _bz2 import BZ2Compressor, BZ2Decompressor
label_desc: Use image node_id 16 for calling the BZ2File obj's underlying member method code with example usage: obj.seek(offset, whence) and returns: self