[New-bugs-announce] [issue42635] Incorrect line number in bytecode for nested loops
Mark Shannon
report at bugs.python.org
Mon Dec 14 04:24:33 EST 2020
New submission from Mark Shannon <mark at hotpy.org>:
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/nedbat/6c5dedde9df8d2de13de8a6a39a5f112
----------
assignee: Mark.Shannon
messages: 382968
nosy: Mark.Shannon, nedbat
priority: normal
severity: normal
stage: needs patch
status: open
title: Incorrect line number in bytecode for nested loops
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42635>
_______________________________________
More information about the New-bugs-announce
mailing list