parameters: (self, stream, encode, decode, Reader, Writer,
                   errors='strict')
docstring: Creates a StreamRecoder instance which implements a two-way
              conversion: encode and decode work on the frontend (the
              data visible to .read() and .write()) while Reader and Writer
              work on the backend (the data in stream).
  
              You can use these objects to do transparent
              transcodings from e.g. latin-1 to utf-8 and back.
  
              stream must be a file-like object.
  
              encode and decode must adhere to the Codec interface; Reader and
              Writer must be factory functions or classes providing the
              StreamReader and StreamWriter interfaces resp.
  
              Error handling is done in the same way as defined for the
              StreamWriter/Readers.
docstring_summary: Creates a StreamRecoder instance which implements a two-way
              conversion: encode and decode work on the frontend (the
              data visible to .read() and .write()) while Reader and Writer
              work on the backend (the data in stream).
docstring_tokens: Creates a StreamRecoder instance which implements a two - way conversion : encode and decode work on the frontend ( the data visible to . read () and . write () ) while Reader and Writer work on the backend ( the data in stream ) .
function: def __init__(self, stream, encode, decode, Reader, Writer,
                   errors='strict'):
  
          """ Creates a StreamRecoder instance which implements a two-way
              conversion: encode and decode work on the frontend (the
              data visible to .read() and .write()) while Reader and Writer
              work on the backend (the data in stream).
  
              You can use these objects to do transparent
              transcodings from e.g. latin-1 to utf-8 and back.
  
              stream must be a file-like object.
  
              encode and decode must adhere to the Codec interface; Reader and
              Writer must be factory functions or classes providing the
              StreamReader and StreamWriter interfaces resp.
  
              Error handling is done in the same way as defined for the
              StreamWriter/Readers.
  
          """
          self.stream = stream
          self.encode = encode
          self.decode = decode
          self.reader = Reader(stream, errors)
          self.writer = Writer(stream, errors)
          self.errors = errors
function_tokens: def __init__ ( self , stream , encode , decode , Reader , Writer , errors = 'strict' ) : self . stream = stream self . encode = encode self . decode = decode self . reader = Reader ( stream , errors ) self . writer = Writer ( stream , errors ) self . errors = errors