Dennis Sweeney <[email protected]> added the comment:
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?
----------
nosy: +Dennis Sweeney
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45829>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com