bundles / IPython 9.14.0.dev / IPython / core / completer / back_unicode_name_matches
function
IPython.core.completer:back_unicode_name_matches
source: /IPython/core/completer.py :1733
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), orempty string,
: - a sequence (of 1), name for the match Unicode character, preceded bybackslash, or empty if no match.
Aliases
-
IPython.core.completer.back_unicode_name_matches