MCPcopy Index your code
hub / github.com/RustPython/RustPython / charmap_build

Function charmap_build

Lib/_pycodecs.py:188–189  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

186
187
188def charmap_build(s):
189 return {ord(c): i for i, c in enumerate(s)}
190
191
192if sys.maxunicode == 65535:

Callers

nothing calls this directly

Calls 2

ordFunction · 0.85
enumerateFunction · 0.85

Tested by

no test coverage detected