Staging: this is not the live site, pydocs.org.
Looks up a codec tuple in the Python codec registry and returns a CodecInfo object.
Changed in 3.9, 3.15
- 3.9: Any characters except ASCII letters and digits and a dot are converted to underscore.
- 3.15: No characters are converted to underscore anymore. Spaces are converted to hyphens.