OpenQuizz
Une application de gestion des contenus pédagogiques
_BZ2Proxy Class Reference
Inheritance diagram for _BZ2Proxy:
Collaboration diagram for _BZ2Proxy:

Public Member Functions

def __init__ (self, fileobj, mode)
 
def init (self)
 
def read (self, size)
 
def seek (self, pos)
 
def tell (self)
 
def write (self, data)
 
def close (self)
 

Data Fields

 fileobj
 
 mode
 
 name
 
 pos
 
 bz2obj
 
 buf
 

Static Public Attributes

 blocksize
 

Detailed Description

Small proxy class that enables external file object
   support for "r:bz2" and "w:bz2" modes. This is actually
   a workaround for a limitation in bz2 module's BZ2File
   class which (unlike gzip.GzipFile) has no support for
   a file object argument.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  fileobj,
  mode 
)

Member Function Documentation

◆ close()

def close (   self)

◆ init()

def init (   self)

◆ read()

def read (   self,
  size 
)

◆ seek()

def seek (   self,
  pos 
)

◆ tell()

def tell (   self)

◆ write()

def write (   self,
  data 
)

Field Documentation

◆ blocksize

blocksize
static

◆ buf

buf

◆ bz2obj

bz2obj

◆ fileobj

fileobj

◆ mode

mode

◆ name

name

◆ pos

pos

The documentation for this class was generated from the following file: