codecs.register()

codecs.register(search_function)

Register a codec search function. Search functions are expected to take one argument, being the encoding name in all lower case letters, and return a CodecInfo object. In case a search function cannot find a given encoding, it should return None.

Note

Search function registration is not currently reversible, which may cause problems in some cases, such as unit testing or module reloading.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.