This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / core / completer / back_unicode_name_matches

function

IPython.core.completer:back_unicode_name_matches

source: /IPython/core/completer.py:1759

Signature

def back_unicode_name_matches(text: str) → tuple[str, Sequence[str]]

Summary

Match Unicode characters back to Unicode name

Extended Summary

This does ☃ -> \snowman

Note that snowman is not a valid python3 combining character but will be expanded. Though it will not recombine back to the snowman character by the completion machinery.

This will not either back-complete standard sequences like n, b ...

Returns

: Return a tuple with two elements:
: - The Unicode character that was matched (preceded with a backslash), or

empty string,

: - a sequence (of 1), name for the match Unicode character, preceded by

backslash, or empty if no match.

Aliases

  • IPython.core.completer.back_unicode_name_matches