class codecs.CodecInfo(encode, decode, streamreader=None, streamwriter=None, incrementalencoder=None, incrementaldecoder=None, name=None)
Codec.decode(input[, errors]) Decodes the object input and returns a tuple (output object, length consumed). For instance
encodings.idna.ToUnicode(label) Convert a label to Unicode, as specified in
writelines(list) Writes the concatenated list of strings to the stream (possibly by reusing the write() method)
encodings.idna.ToASCII(label) Convert a label to ASCII, as specified in
readlines([sizehint[, keepends]]) Read all lines available on the input stream and return them as a list of lines.
codecs.lookup(encoding) Looks up the codec info in the Python codec registry and returns a CodecInfo object as
struct.unpack(fmt, buffer) Unpack from the buffer buffer (presumably packed by pack(fmt, ...)) according
class codecs.StreamWriter(stream, errors='strict') Constructor for a StreamWriter instance. All
codecs.getwriter(encoding) Look up the codec for the given encoding and return its StreamWriter class or factory
Page 7 of 8