class codecs.StreamReader(stream, errors='strict') Constructor for a StreamReader instance. All
streamreader Stream writer and reader classes or factory functions. These have to provide the interface defined by the base
codecs.lookup_error(name) Return the error handler previously registered under the name name. Raises
codecs.EncodedFile(file, data_encoding, file_encoding=None, errors='strict') Return a StreamRecoder instance, a
IncrementalEncoder.setstate(state) Set the state of the encoder to state. state must be an encoder state returned
reset() Reset the encoder to the initial state. The output is discarded: call .encode(object, final=True), passing
codecs.register(search_function) Register a codec search function. Search functions are expected to take one argument, being
codecs.encode(obj, encoding='utf-8', errors='strict') Encodes obj using the codec registered for encoding
codecs.xmlcharrefreplace_errors(exception) Implements the 'xmlcharrefreplace' error handling (for encoding with
codecs.getencoder(encoding) Look up the codec for the given encoding and return its encoder function. Raises
Page 3 of 8