summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorzhanpon <pon.zhan@gmail.com>2022-08-11 11:32:52 (GMT)
committerGitHub <noreply@github.com>2022-08-11 11:32:52 (GMT)
commit23a757f44fbe29924da8bec7f3682f99a2c0fee5 (patch)
treea5aa10c819fd0e3a49217df2a0d7a1605654636b /Python
parent8b34e914bba2ccd6ae39609410db49d0beb19cb1 (diff)
downloadcpython-23a757f44fbe29924da8bec7f3682f99a2c0fee5.zip
cpython-23a757f44fbe29924da8bec7f3682f99a2c0fee5.tar.gz
cpython-23a757f44fbe29924da8bec7f3682f99a2c0fee5.tar.bz2
Update _PyEval_AddPendingCall comment (#95817)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index abb934d..d34d6bf 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -630,8 +630,8 @@ _PyEval_AddPendingCall(PyInterpreterState *interp,
{
struct _pending_calls *pending = &interp->ceval.pending;
- /* Ensure that _PyEval_InitPendingCalls() was called
- and that _PyEval_FiniPendingCalls() is not called yet. */
+ /* Ensure that _PyEval_InitState() was called
+ and that _PyEval_FiniState() is not called yet. */
assert(pending->lock != NULL);
PyThread_acquire_lock(pending->lock, WAIT_LOCK);