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

bundles / IPython 9.14.0 / IPython / core / completer / Completer / _trim_expr

function

IPython.core.completer:Completer._trim_expr

source: /dev/ipython/IPython/core/completer.py:1337

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