Skip to content

Commit f5c10f9

Browse files
committed
Fix stray typo
1 parent 832e413 commit f5c10f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/genobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ gen_send_ex2(PyGenObject *gen, PyObject *arg, PyObject **presult, int exc)
236236
}
237237

238238
EVAL_CALL_STAT_INC(EVAL_CALL_GENERATOR);
239-
PyObject *result = PyEval_EvalFrame(tstate, frame, exc);
239+
PyObject *result = _PyEval_EvalFrame(tstate, frame, exc);
240240
assert(tstate->exc_info == prev_exc_info);
241241
#ifndef Py_GIL_DISABLED
242242
assert(gen->gi_exc_state.previous_item == NULL);
@@ -245,7 +245,7 @@ gen_send_ex2(PyGenObject *gen, PyObject *arg, PyObject **presult, int exc)
245245
#endif
246246

247247
// The generator_return_kind field is used to distinguish between a
248-
// yield and a return from within PyEval_EvalFrame(). Earlier versions
248+
// yield and a return from within _PyEval_EvalFrame(). Earlier versions
249249
// of CPython (prior to 3.15) used gi_frame_state for this purpose, but
250250
// that requires the GIL for thread-safety.
251251
int return_kind = ((_PyThreadStateImpl *)tstate)->generator_return_kind;

0 commit comments

Comments
 (0)