This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release. 7.8. codecs — Codec registry and base classes¶ 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 p