Python codecs Library register and unregister functions

Python codecs Library register and unregister functions

Python codecs Library

The purpose of this module is Encoding and decoding i.e. conversion of the texts between different representations.
This module defines base classes for standard Python codecs (encoders and decoders) and provides access to the internal Python codec registry, which manages the codec and error handling lookup process.

The next two functions defined here are 
1. codecs.register(encoding)
2. codecs.unregister(encoding)


This function registers a new codec search function.
What do you mean by a search function?
Search Functions take one argument, that is the encoding name in lower letters with hyphens and spaces converted to underscores, and return a CodecInfo object. In case a search function cannot find a given encoding, it should return None


This function unregisters a codec search function and clear the registry's cache. If the search function is already unregistered, it does nothing.


More Articles of Arkaja Sharan:

Name Views Likes
Python codecs Library Error Handling schemes module functions 77 0
Python codecs Library Error Handler register_error and lookup_error functions 71 0
Python codecs Library Error Handlers 77 0
Python codecs Library open and EncodedFile functions 66 0
Python codecs Library iterencode and iterdecode functions 85 0
Python codecs Library register and unregister functions 67 0
Python codecs Library getreader and getwriter functions 79 0
Python codecs Library getincrementalencoder and getincrementaldecoder 65 0
Python codecs Library getencoder and getdecoder functions 70 0
Python Introduction to codecs Library 99 0
Python fcntl Library flock and lockf functions 78 0
Python fcntl Library fcntl and ioctl functions 90 0
Python Resource Library resource usage functions 90 0
Python Resource Library resource usage symbolic constants 73 0
Python Resource Library Resource Limit Functions 87 0
Python resource library resource limit symbolic constants 80 0
Python Introduction to Resource Library 70 0
Python stringprep Library in_table_d1 and in_table_d2 functions 78 0
Python stringprep Library in_table_c8 and in_table_c9 functions 81 0
Python stringprep Library in_table_c5 in_table_c6 and in_table_c7 functions 69 0
Python stringprep Library in_table_c3 and in_table_c4 functions 75 0
Python stringprep library in_table_c21 in_table_c22 and in_table_c21_c22 77 0
Python stringprep library functions in_table_c11 in_table_c12 and in_table_c11_c12 78 0
Python Introduction to stringprep Library 79 0
Python unicodedata library is_normalized unidata_version and ucd_3_2_0 75 0
Python Unicodedata Library functions normalize and decomposition 130 0
Python Unicodedata Library functions east_asian_width and mirrored 82 1
Python Unicodedata Library category bidirectional and combining functions 114 0
Introduction to Unicodedata library lookup and name functions 79 0
Unicode Library decimal digit and numeric functions 82 0
Introduction to Unicode Data library 0 0