Commit 21ee37c
Skip Montanaro
remove spurious SET_LINENO from com_list_for and com_list_if. All they do
is slow things down unnecessarily and make tracing much more verbose.
Something like
def f(n):
return [i for i in range(n) if i%2]
should have at most two SET_LINENO instructions, not four. When tracing,
the current line number should be printed once, not 2*n+1 times.1 parent f8c8cf8 commit 21ee37c
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | | - | |
1380 | 1379 | | |
1381 | 1380 | | |
1382 | 1381 | | |
| |||
1395 | 1394 | | |
1396 | 1395 | | |
1397 | 1396 | | |
1398 | | - | |
1399 | 1397 | | |
1400 | 1398 | | |
1401 | 1399 | | |
| |||
0 commit comments