struct.calcsize(fmt) Return the size of the struct (and hence of the bytes object produced by pack(fmt, ...)) corresponding
codecs.getincrementalencoder(encoding) Look up the codec for the given encoding and return its incremental encoder class or
codecs.register_error(name, error_handler) Register the error handling function error_handler under the name name
codecs.namereplace_errors(exception) Implements the 'namereplace' error handling (for encoding with
reset() Flushes and resets the codec buffers used for keeping state. Calling this method should
readline([size[, keepends]]) Read one line from the input stream and return the decoded data. size
struct.iter_unpack(fmt, buffer) Iteratively unpack from the buffer buffer according to the format string fmt
IncrementalEncoder.getstate() Return the current state of the encoder which must be an integer. The implementation should make
codecs.iterdecode(iterator, encoding, errors='strict', **kwargs) Uses an incremental decoder to iteratively decode the input
codecs.open(filename, mode='r', encoding=None, errors='strict', buffering=1) Open an encoded file using the given mode
Page 5 of 8