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

Method reset

IPython/core/inputtransformer.py:160–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 return untokenize(self.func(tokens)).rstrip('\n')
159
160 def reset(self):
161 l = ''.join(self.buf)
162 self.buf.clear()
163 self.reset_tokenizer()
164 if l:
165 return l.rstrip('\n')
166
167class assemble_python_lines(TokenInputTransformer):
168 def __init__(self):

Callers 1

pushMethod · 0.95

Calls 1

reset_tokenizerMethod · 0.95

Tested by

no test coverage detected