codecs.open(filename, mode='r', encoding=None, errors='strict', buffering=1) Open an encoded file using the given mode
class codecs.StreamRecoder(stream, encode, decode, Reader, Writer, errors) Creates a StreamRecoder instance which
codecs.iterdecode(iterator, encoding, errors='strict', **kwargs) Uses an incremental decoder to iteratively decode the input
reset() Flushes and resets the codec buffers used for keeping state. Calling this method should
pack(v1, v2, ...) Identical to the pack() function, using the compiled format. (len(result) will equal
codecs.strict_errors(exception) Implements the 'strict' error handling: each encoding or decoding error raises
codecs.getincrementalencoder(encoding) Look up the codec for the given encoding and return its incremental encoder class or
struct.calcsize(fmt) Return the size of the struct (and hence of the bytes object produced by pack(fmt, ...)) corresponding
format The format string used to construct this Struct object.
IncrementalEncoder.getstate() Return the current state of the encoder which must be an integer. The implementation should make
Page 5 of 8