Ammar Askar <[email protected]> added the comment:
minimal reproducer without coverage:
import sys
def f():
try:
for i in []: pass
return 1
except:
return 2
def tracer(frame, event, _):
if event == 'line':
print("executing line {}".format(frame.f_lineno))
return tracer
sys.settrace(tracer)
f()
With computed gotos this results in:
> executing line 4
> executing line 5
> executing line 6
but without:
> executing line 4
> executing line 5
----------
nosy: +ammar2
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41670>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com