pyutils/line_profiler

`for` lines show count 1 greater than number of loops

zig1000 opened this issue · 4 comments

A side effect of fixing the much worse #210; see #214 (comment).

Is there any easy fix for this? I was going to build a release with the latest merge, should I hold off until this is fixed too?

Theelx commented

I'll check if there's an easy fix. If I recall correctly, this was also the case with line_profiler 3.x, but I might be going crazy. Anyway, thanks for pointing this out again @zig1000, and I apologize that I didn't fix this sooner.

Theelx commented

It seems this issue has been around since v3. I've spent the past hour or so trying to even find where the extra hit is coming from, and I'm no closer than before.
image

Late reply but #214 (comment) originally predicted this issue and explained what is causing it