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
reset() Resets the codec buffers used for keeping state. Note that no stream repositioning should
streamwriter streamreader Stream writer and reader classes or factory functions. These have to provide the interface
codecs.EncodedFile(file, data_encoding, file_encoding=None, errors='strict') Return a StreamRecoder instance, a
codecs.lookup_error(name) Return the error handler previously registered under the name name. Raises
streamreader Stream writer and reader classes or factory functions. These have to provide the interface defined by the base
codecs.getreader(encoding) Look up the codec for the given encoding and return its StreamReader class or factory
size The calculated size of the struct (and hence of the bytes object produced by the pack() method) corresponding
decode(object[, final]) Decodes object (taking the current state of the decoder into account) and returns the resulting
Page 4 of 8