You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / core / completer / Completer / _trim_expr

function

IPython.core.completer:Completer._trim_expr

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

Signature

def   _trim_expr ( self code : str )  →  str

Summary

Trim the code until it is a valid expression and not a tuple;

Extended Summary

return the trimmed expression for guarded_eval.

Aliases

  • IPython.core.completer.Completer._trim_expr