Message 260916 - Python tracker
My test case:
def long():
z = a = b = c = d = e = f = g = h = 1
while x:
x = x if x and x or not x else x
above line repeated 2999 more times
import dis
print(dis.findlabels(long.__code__.co_code)[:10])
Buggy output:
[35510, 35509, 62, 69, 78, 81, 93, 100, 109, 112]
Correct output:
[101046, 101045, 62, 69, 78, 81, 93, 100, 109, 112]