This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, nedbat
Date 2020-12-14.09:24:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607937873.82.0.254975508091.issue42635@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-12-14 09:24:33Mark.Shannonsetrecipients: + Mark.Shannon, nedbat
2020-12-14 09:24:33Mark.Shannonsetmessageid: <1607937873.82.0.254975508091.issue42635@roundup.psfhosted.org>
2020-12-14 09:24:33Mark.Shannonlinkissue42635 messages
2020-12-14 09:24:33Mark.Shannoncreate