SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72114 0 1 Python

bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)

The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.
B
Benjamin Peterson committed
d545869d084e70d4838310e79b52a25a72a1ca56
Parent: 5475253
Committed by GitHub <noreply@github.com> on 9/10/2018, 3:43:10 PM