From f291404a802d6a1bc50f817c7a26ff3ac9a199ff Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Thu, 28 Oct 2021 13:59:11 +0100 Subject: bpo-45637: Store the frame pointer in the cframe (GH-29267) * Rename 'frame' to 'current_frame' --- Python/sysmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 5e663c17c79..27937a03e89 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1813,7 +1813,7 @@ sys__getframe_impl(PyObject *module, int depth) /*[clinic end generated code: output=d438776c04d59804 input=c1be8a6464b11ee5]*/ { PyThreadState *tstate = _PyThreadState_GET(); - InterpreterFrame *frame = tstate->frame; + InterpreterFrame *frame = tstate->cframe->current_frame; if (_PySys_Audit(tstate, "sys._getframe", NULL) < 0) { return NULL; -- cgit v1.2.3