Jump¶
jump lineno
Set the next line that will be executed.
There are a number of limitations on what line can be set.
You can’t jump:
into the body of a for loop
into an
exceptblock from outsideoutside or inside of a code block you are stopped
Jumping to a previous line is one way to reexecuting code. Jumping to a return statement may get you back to the caller function without running more code in the current frame.