Re:Python goto implemented with system trace function (2017)
by xashor on Tuesday May 05, 2020 @11:03AM
(#23080749)
[ Parent
| on HN ]
Re:Python goto implemented with system trace function (2017)
by CivBase on Tuesday May 05, 2020 @11:14AM
(#23080888)
Past labels are easy, but what about future labels?
print(1)
goto('MYLABEL')
print(2)
label('MYLABEL')
print(3)
Or better yet... for x in range(10):
for y in range(10):
if x == 5 and y == 5:
print(x, y)
goto('MULTIBREAK')
label('MULTIBREAK')