[New-bugs-announce] [issue34588] traceback module can drop a frame

Benjamin Peterson report at bugs.python.org
Wed Sep 5 13:52:12 EDT 2018


New submission from Benjamin Peterson <benjamin at python.org>:

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.

----------
components: Library (Lib)
messages: 324648
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: traceback module can drop a frame
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34588>
_______________________________________


More information about the New-bugs-announce mailing list