summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-10-28 12:59:11 (GMT)
committerGitHub <noreply@github.com>2021-10-28 12:59:11 (GMT)
commitf291404a802d6a1bc50f817c7a26ff3ac9a199ff (patch)
tree57ad999fe2fb5febf8a48cd17dc213259b80574c /Python/sysmodule.c
parent0a68b3603fbc0aaf9eeb8ce8b42b78d6fa7cfa78 (diff)
downloadcpython-f291404a802d6a1bc50f817c7a26ff3ac9a199ff.zip
cpython-f291404a802d6a1bc50f817c7a26ff3ac9a199ff.tar.gz
cpython-f291404a802d6a1bc50f817c7a26ff3ac9a199ff.tar.bz2
bpo-45637: Store the frame pointer in the cframe (GH-29267)
* Rename 'frame' to 'current_frame'
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 5e663c1..27937a0 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;