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

bundles / IPython 9.14.0.dev / IPython / terminal / ptutils / _elide_point

function

IPython.terminal.ptutils:_elide_point

source: /IPython/terminal/ptutils.py :31

Signature

def   _elide_point ( string : str * min_elide )  →  str

Summary

If a string is long enough, and has at least 3 dots, replace the middle part with ellipses.

Extended Summary

If a string naming a file is long enough, and has at least 3 slashes, replace the middle part with ellipses.

If three consecutive dots, or two consecutive dots are encountered these are replaced by the equivalents HORIZONTAL ELLIPSIS or TWO DOT LEADER unicode equivalents

Aliases

  • IPython.terminal.ptutils._elide_point