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 Dennis Sweeney
Recipients Dennis Sweeney, Mark.Shannon, brandtbucher, gvanrossum, pablogsal
Date 2021-11-19.07:21:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637306497.87.0.727785947967.issue45829@roundup.psfhosted.org>
In-reply-to
Content
This snippet occurs a couple of times in ceval.c (BINARY_SUBSCR_GETITEM and CALL_FUNCTION_PY_SIMPLE):

            new_frame->previous = frame;
            frame = cframe.current_frame = new_frame;
            new_frame->depth = frame->depth + 1;

Maybe I'm reading it wrong, but I think the last line is just setting new_frame->depth++, leaving new_frame->depth = 1 instead of frame->previous->depth + 1.

I think the second and third lines should be swapped?
History
Date User Action Args
2021-11-19 07:21:37Dennis Sweeneysetrecipients: + Dennis Sweeney, gvanrossum, Mark.Shannon, pablogsal, brandtbucher
2021-11-19 07:21:37Dennis Sweeneysetmessageid: <1637306497.87.0.727785947967.issue45829@roundup.psfhosted.org>
2021-11-19 07:21:37Dennis Sweeneylinkissue45829 messages
2021-11-19 07:21:37Dennis Sweeneycreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.