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

bundles / IPython latest / IPython / core / splitinput / LineInfo

class

IPython.core.splitinput:LineInfo

source: /IPython/core/splitinput.py :71

Signature

class   LineInfo ( line : str continue_prompt : bool = False )  →  None

Members

Summary

A single line of input and associated info.

Extended Summary

Includes the following as properties:

line

The original, raw line

continue_prompt

Is this line a continuation in a sequence of multiline input?

pre

Any leading whitespace.

esc

The escape character(s) in pre or the empty string if there isn't one. Note that '!!' and '??' are possible values for esc. Otherwise it will always be a single character.

ifun

The 'function part', which is basically the maximal initial sequence of valid python identifiers and the '.' character. This is what is checked for alias and magic transformations, used for auto-calling, etc. In contrast to Python identifiers, it may start with "%" and contain "*".

the_rest

Everything else on the line.

raw_the_rest

the_rest without whitespace stripped.

Aliases

  • IPython.core.prefilter.LineInfo