diff options
author | Mark Shannon <mark@hotpy.org> | 2023-08-17 11:16:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 11:16:03 +0100 |
commit | 006e44f9502308ec3d14424ad8bd774046f2be8e (patch) | |
tree | 91ab71678a0fb5f5ba410c371f28ded8a1c82d0d /Python/intrinsics.c | |
parent | 33e6e3fec02ff3035dec52692542d3dd10124bef (diff) | |
download | cpython-006e44f9502308ec3d14424ad8bd774046f2be8e.tar.gz cpython-006e44f9502308ec3d14424ad8bd774046f2be8e.zip |
GH-108035: Remove the `_PyCFrame` struct as it is no longer needed for performance. (GH-108036)
Diffstat (limited to 'Python/intrinsics.c')
-rw-r--r-- | Python/intrinsics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/intrinsics.c b/Python/intrinsics.c index 61a8e75872d..5267c10238e 100644 --- a/Python/intrinsics.c +++ b/Python/intrinsics.c @@ -120,7 +120,7 @@ import_all_from(PyThreadState *tstate, PyObject *locals, PyObject *v) static PyObject * import_star(PyThreadState* tstate, PyObject *from) { - _PyInterpreterFrame *frame = tstate->cframe->current_frame; + _PyInterpreterFrame *frame = tstate->current_frame; if (_PyFrame_FastToLocalsWithError(frame) < 0) { return NULL; } @@ -142,7 +142,7 @@ import_star(PyThreadState* tstate, PyObject *from) static PyObject * stopiteration_error(PyThreadState* tstate, PyObject *exc) { - _PyInterpreterFrame *frame = tstate->cframe->current_frame; + _PyInterpreterFrame *frame = tstate->current_frame; assert(frame->owner == FRAME_OWNED_BY_GENERATOR); assert(PyExceptionInstance_Check(exc)); const char *msg = NULL; |