summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorВиталий Дмитриев <vitaldmit@bk.ru>2023-01-26 23:04:11 (GMT)
committerGitHub <noreply@github.com>2023-01-26 23:04:11 (GMT)
commit37f15a5efab847b8aca47981ab596e9c36445bf7 (patch)
treebe8cba5d6687824ae90f99096b64434791a8a76f /Python
parent8d18d1ffd52eb3917c4566b09596d596116a5532 (diff)
downloadcpython-37f15a5efab847b8aca47981ab596e9c36445bf7.zip
cpython-37f15a5efab847b8aca47981ab596e9c36445bf7.tar.gz
cpython-37f15a5efab847b8aca47981ab596e9c36445bf7.tar.bz2
Fix typos in pystate.c file (#101348)
Diffstat (limited to 'Python')
-rw-r--r--Python/pystate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index d31c1f1..bf7688f 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -57,9 +57,9 @@ static void _PyThreadState_Delete(PyThreadState *tstate, int check_current);
//-------------------------------------------------
/*
- The stored thread state is set by PyThraedState_Swap().
+ The stored thread state is set by PyThreadState_Swap().
- For each of these functions, the GIL mus be held by the current thread.
+ For each of these functions, the GIL must be held by the current thread.
*/
static inline PyThreadState *
@@ -232,7 +232,7 @@ unbind_tstate(PyThreadState *tstate)
current_tss_clear(runtime);
}
- // We leave thread_id and native_thraed_id alone
+ // We leave thread_id and native_thread_id alone
// since they can be useful for debugging.
// Check the `_status` field to know if these values
// are still valid.
@@ -1140,7 +1140,7 @@ init_threadstate(PyThreadState *tstate,
tstate->exc_info = &tstate->exc_state;
// PyGILState_Release must not try to delete this thread state.
- // This is cleared when PyGILState_Ensure() creates the thread sate.
+ // This is cleared when PyGILState_Ensure() creates the thread state.
tstate->gilstate_counter = 1;
tstate->cframe = &tstate->root_cframe;
@@ -1220,7 +1220,7 @@ _PyThreadState_Prealloc(PyInterpreterState *interp)
}
// We keep this around for (accidental) stable ABI compatibility.
-// Realisically, no extensions are using it.
+// Realistically, no extensions are using it.
void
_PyThreadState_Init(PyThreadState *tstate)
{