MCPcopy Index your code
hub / github.com/python/cpython / getencoder

Function getencoder

Lib/codecs.py:975–983  ·  view source on GitHub ↗

Lookup up the codec for the given encoding and return its encoder function. Raises a LookupError in case the encoding cannot be found.

(encoding)

Source from the content-addressed store, hash-verified

973### Helpers for codec lookup
974
975def getencoder(encoding):
976
977 """ Lookup up the codec for the given encoding and return
978 its encoder function.
979
980 Raises a LookupError in case the encoding cannot be found.
981
982 """
983 return lookup(encoding).encode
984
985def getdecoder(encoding):
986

Callers

nothing calls this directly

Calls 1

lookupFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…