MCPcopy Create free account
hub / github.com/ipython/ipython / InMultilineStatement

Class InMultilineStatement

IPython/core/inputsplitter.py:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 self.line = line
111
112class InMultilineStatement:
113 type = exact_type = IN_MULTILINE_STATEMENT
114 def __init__(self, pos, line):
115 self.s = ''
116 self.start = self.end = pos
117 self.line = line
118
119def partial_tokens(s):
120 """Iterate over tokens from a possibly-incomplete string of code.

Callers 1

partial_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected