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 eric.fahlgren
Recipients Barun Parruck, eric.fahlgren, llllllllll
Date 2016-02-27.04:17:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456546671.84.0.433368352206.issue26448@psf.upfronthosting.co.za>
In-reply-to
Content
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]
History
Date User Action Args
2016-02-27 04:17:51eric.fahlgrensetrecipients: + eric.fahlgren, llllllllll, Barun Parruck
2016-02-27 04:17:51eric.fahlgrensetmessageid: <1456546671.84.0.433368352206.issue26448@psf.upfronthosting.co.za>
2016-02-27 04:17:51eric.fahlgrenlinkissue26448 messages
2016-02-27 04:17:50eric.fahlgrencreate