codecs.lookup(encoding) Looks up the codec info in the Python codec registry and returns a CodecInfo object as
writelines(list) Writes the concatenated list of strings to the stream (possibly by reusing the write() method)
read([size[, chars[, firstline]]]) Decodes data from the stream and returns the resulting object. The
readlines([sizehint[, keepends]]) Read all lines available on the input stream and return them as a list of lines.
encodings.idna.ToUnicode(label) Convert a label to Unicode, as specified in
struct.unpack(fmt, buffer) Unpack from the buffer buffer (presumably packed by pack(fmt, ...)) according
class codecs.CodecInfo(encode, decode, streamreader=None, streamwriter=None, incrementalencoder=None, incrementaldecoder=None, name=None)
class codecs.StreamWriter(stream, errors='strict') Constructor for a StreamWriter instance. All
Codec.decode(input[, errors]) Decodes the object input and returns a tuple (output object, length consumed). For instance
getstate() Return the current state of the decoder. This must be a tuple with two items, the first must be the buffer containing
Page 7 of 8