Python codecs Functions
EditRocket provides the following information on codecs functions in the Python source code builder.
EncodedFile(file, input[, output[, errors]]) - Return a wrapped version of file which provides transparent encoding translation.
backslashreplace_errors_errors(exception) - Implements the backslashreplace error handling.
getdecoder(encoding) - Look up the codec for the given encoding and return its decoder function.
getencoder(encoding) - Look up the codec for the given encoding and return its encoder function.
getincrementaldecoder(encoding) - Look up the codec for the given encoding and return its incremental decoder class or factory function.
getincrementalencoder(encoding) - Look up the codec for the given encoding and return its incremental encoder class or factory function.
getreader(encoding) - Look up the codec for the given encoding and return its StreamReader class or factory function.
getwriter(encoding) - Look up the codec for the given encoding and return its StreamWriter class or factory function.
ignore_errors(exception) - Implements the ignore error handling.
iterdecode(iterable, encoding[, errors]) - Uses an incremental decoder to iteratively decode the input provided by iterable.
iterencode(iterable, encoding[, errors]) - Uses an incremental encoder to iteratively encode the input provided by iterable.
lookup(encoding) - Looks up the codec info in the Python codec registry and returns a CodecInfo object as defined above.
lookup_error(name) - Return the error handler previously registered under the name name.
open(filename, mode[, encoding[, errors[, buffering]]]) - Open an encoded file using the given mode and return a wrapped version providing transparent encoding/decoding.
register(search_function) - Register a codec search function.
register_error(name, error_handler) - Register the error handling function error_handler under the name name.
replace_errors(exception) - Implements the replace error handling.
strict_errors(exception) - Implements the strict error handling.
xmlcharrefreplace_errors_errors(exception) - Implements the xmlcharrefreplace error handling.