Author benjamin.peterson
Recipients benjamin.peterson
Date 2018-09-05.17:52:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536169932.26.0.56676864532.issue34588@psf.upfronthosting.co.za>
In-reply-to
Content
Consider the following script:
import traceback

def fill_stack(depth):
    if depth <= 1:
        return traceback.format_stack()
    else:
        return fill_stack(depth - 1)

assert fill_stack(4) != fill_stack(5)

On the Python 3 versions I tested, this script doesn't fail! Somehow traceback is producing identical tracebacks for different callstacks.
History
Date User Action Args
2018-09-05 17:52:12benjamin.petersonsetrecipients: + benjamin.peterson
2018-09-05 17:52:12benjamin.petersonsetmessageid: <1536169932.26.0.56676864532.issue34588@psf.upfronthosting.co.za>
2018-09-05 17:52:12benjamin.petersonlinkissue34588 messages
2018-09-05 17:52:12benjamin.petersoncreate