MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / format_results

Function format_results

21-async/mojifinder/charindex.py:69–73  ·  view source on GitHub ↗
(chars: set[Char])

Source from the content-addressed store, hash-verified

67
68
69def format_results(chars: set[Char]) -> Iterator[str]:
70 for char in sorted(chars):
71 name = unicodedata.name(char)
72 code = ord(char)
73 yield f'U+{code:04X}\t{char}\t{name}'
74
75
76def main(words: list[str]) -> None:

Callers 2

searchFunction · 0.90
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected