codecs.EncodedFile(file, data_encoding, file_encoding=None, errors='strict') Return a StreamRecoder instance, a
decode The stateless encoding and decoding functions. These must be functions or methods which have the same interface as the
reset() Reset the encoder to the initial state. The output is discarded: call .encode(object, final=True), passing
codecs.lookup_error(name) Return the error handler previously registered under the name name. Raises
write(object) Writes the object’s contents encoded to the stream.
codecs.backslashreplace_errors(exception) Implements the 'backslashreplace' error handling (for
codecs.getreader(encoding) Look up the codec for the given encoding and return its StreamReader class or factory
IncrementalEncoder.setstate(state) Set the state of the encoder to state. state must be an encoder state returned
streamwriter streamreader Stream writer and reader classes or factory functions. These have to provide the interface
decode(object[, final]) Decodes object (taking the current state of the decoder into account) and returns the resulting
Page 4 of 8