From 3f7ecde4d10b28b6c564f05c47c3683a653cd0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D1=82=D0=B0=D0=BB=D0=B8=D0=B9=20=D0=94=D0=BC?= =?UTF-8?q?=D0=B8=D1=82=D1=80=D0=B8=D0=B5=D0=B2?= Date: Thu, 26 Jan 2023 18:54:49 +0300 Subject: [PATCH 1/3] Fix typo in pystate.c file mus -> must --- Python/pystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pystate.c b/Python/pystate.c index d31c1f166f222c..01aeb11eb3e709 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -59,7 +59,7 @@ static void _PyThreadState_Delete(PyThreadState *tstate, int check_current); /* The stored thread state is set by PyThraedState_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 * From b013cc3c2e6cb39c558ff6e253fefa19f4d1b1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D1=82=D0=B0=D0=BB=D0=B8=D0=B9=20=D0=94=D0=BC?= =?UTF-8?q?=D0=B8=D1=82=D1=80=D0=B8=D0=B5=D0=B2?= Date: Thu, 26 Jan 2023 19:30:50 +0300 Subject: [PATCH 2/3] Fix another typos --- Python/pystate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Python/pystate.c b/Python/pystate.c index 01aeb11eb3e709..95b108eefdb34b 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 must be held by the current thread. + For each of these functions, the GIL mus 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) { From da8cbdd37cbaa5d729ed61c724e3df2736baaecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D1=82=D0=B0=D0=BB=D0=B8=D0=B9=20=D0=94=D0=BC?= =?UTF-8?q?=D0=B8=D1=82=D1=80=D0=B8=D0=B5=D0=B2?= Date: Thu, 26 Jan 2023 19:36:41 +0300 Subject: [PATCH 3/3] Fix typo mus -> must again --- Python/pystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pystate.c b/Python/pystate.c index 95b108eefdb34b..bf7688fd32134b 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -59,7 +59,7 @@ static void _PyThreadState_Delete(PyThreadState *tstate, int check_current); /* 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 *