MCPcopy Index your code
hub / github.com/ipython/ipython / unicode_names

Method unicode_names

IPython/core/completer.py:3829–3843  ·  view source on GitHub ↗

List of names of unicode code points that can be completed. The list is lazily initialized on first access.

(self)

Source from the content-addressed store, hash-verified

3827
3828 @property
3829 def unicode_names(self) -> list[str]:
3830 """List of names of unicode code points that can be completed.
3831
3832 The list is lazily initialized on first access.
3833 """
3834 if self._unicode_names is None:
3835 names = []
3836 for c in range(0,0x10FFFF + 1):
3837 try:
3838 names.append(unicodedata.name(chr(c)))
3839 except ValueError:
3840 pass
3841 self._unicode_names = _unicode_name_compute(_UNICODE_RANGES)
3842
3843 return self._unicode_names
3844
3845
3846def _unicode_name_compute(ranges: list[tuple[int, int]]) -> list[str]:

Callers

nothing calls this directly

Calls 2

_unicode_name_computeFunction · 0.85
nameMethod · 0.80

Tested by

no test coverage detected