[issue42635] Incorrect line number in bytecode for nested loops

2020-12-14 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> needs patch status: open -> closed ___ Python tracker ___ _

[issue42635] Incorrect line number in bytecode for nested loops

2020-12-14 Thread Mark Shannon
Mark Shannon added the comment: New changeset f5e97b72fecff9b9ced35704ec5e6cad29e2825d by Mark Shannon in branch 'master': bpo-42635: Mark JUMP_ABSOLUTE at end of 'for' loop as artificial to avoid spurious line events. (GH-23761) https://github.com/python/cpython/commit/f5e97b72fecff9b9ced35

[issue42635] Incorrect line number in bytecode for nested loops

2020-12-14 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +22617 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23761 ___ Python tracker

[issue42635] Incorrect line number in bytecode for nested loops

2020-12-14 Thread Mark Shannon
New submission from Mark Shannon : The following code, when traced, produces a spurious line events at the end of the inner loop. def dloop(): for i in range(3): for j in range(3): a = i + j assert a == 4 Bug reported by Ned Batchelder https://gist.github.com/n