MCPcopy Index your code
hub / github.com/python/cpython / set_lo

Method set_lo

Lib/idlelib/pyparse.py:188–195  ·  view source on GitHub ↗

Throw away the start of the string. Intended to be called with the result of find_good_parse_start().

(self, lo)

Source from the content-addressed store, hash-verified

186 return pos
187
188 def set_lo(self, lo):
189 """ Throw away the start of the string.
190
191 Intended to be called with the result of find_good_parse_start().
192 """
193 assert lo == 0 or self.code[lo-1] == '\n'
194 if lo > 0:
195 self.code = self.code[lo:]
196
197 def _study1(self):
198 """Find the line numbers of non-continuation lines.

Callers 3

__init__Method · 0.95
test_set_loMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_set_loMethod · 0.64