MCPcopy Index your code
hub / github.com/RustPython/RustPython / do_until

Method do_until

Lib/pdb.py:984–1005  ·  view source on GitHub ↗

unt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also stop when t

(self, arg)

Source from the content-addressed store, hash-verified

982 do_d = do_down
983
984 def do_until(self, arg):
985 """unt(il) [lineno]
986 Without argument, continue execution until the line with a
987 number greater than the current one is reached. With a line
988 number, continue execution until a line with a number greater
989 or equal to that is reached. In both cases, also stop when
990 the current frame returns.
991 """
992 if arg:
993 try:
994 lineno = int(arg)
995 except ValueError:
996 self.error('Error in argument: %r' % arg)
997 return
998 if lineno <= self.curframe.f_lineno:
999 self.error('"until" line number is smaller than current '
1000 'line number')
1001 return
1002 else:
1003 lineno = None
1004 self.set_until(self.curframe, lineno)
1005 return 1
1006 do_unt = do_until
1007
1008 def do_step(self, arg):

Callers

nothing calls this directly

Calls 2

errorMethod · 0.95
set_untilMethod · 0.80

Tested by

no test coverage detected