https://github.com/python/cpython/commit/5d194902cbe9eff0a4f974c65479046c251664fd
commit: 5d194902cbe9eff0a4f974c65479046c251664fd
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: terryjreedy <[email protected]>
date: 2024-06-20T03:40:54Z
summary:

[3.13] Fix typos in comments (GH-120481) (#120774)

(cherry picked from commit 656a1c81083b76b9d998c983f4329348a65985d3)

Co-authored-by: Xie Yanbo <[email protected]>

files:
M Include/internal/pycore_frame.h
M Include/internal/pycore_gc.h
M Python/qsbr.c
M Python/specialize.c

diff --git a/Include/internal/pycore_frame.h b/Include/internal/pycore_frame.h
index 994900c007f4bd..e4eb893263c42c 100644
--- a/Include/internal/pycore_frame.h
+++ b/Include/internal/pycore_frame.h
@@ -214,7 +214,7 @@ _PyFrame_MakeAndSetFrameObject(_PyInterpreterFrame *frame);
 
 /* Gets the PyFrameObject for this frame, lazily
  * creating it if necessary.
- * Returns a borrowed referennce */
+ * Returns a borrowed reference */
 static inline PyFrameObject *
 _PyFrame_GetFrameObject(_PyInterpreterFrame *frame)
 {
diff --git a/Include/internal/pycore_gc.h b/Include/internal/pycore_gc.h
index ba8b8e1903f307..28e34d3809634c 100644
--- a/Include/internal/pycore_gc.h
+++ b/Include/internal/pycore_gc.h
@@ -346,7 +346,7 @@ struct _gc_runtime_state {
     Py_ssize_t long_lived_pending;
 
     /* gh-117783: Deferred reference counting is not fully implemented yet, so
-       as a temporary measure we treat objects using deferred referenence
+       as a temporary measure we treat objects using deferred reference
        counting as immortal. The value may be zero, one, or a negative number:
         0: immortalize deferred RC objects once the first thread is created
         1: immortalize all deferred RC objects immediately
diff --git a/Python/qsbr.c b/Python/qsbr.c
index a7321154a62ffc..a40219acfe2c29 100644
--- a/Python/qsbr.c
+++ b/Python/qsbr.c
@@ -2,7 +2,7 @@
  * Implementation of safe memory reclamation scheme using
  * quiescent states.
  *
- * This is dervied from the "GUS" safe memory reclamation technique
+ * This is derived from the "GUS" safe memory reclamation technique
  * in FreeBSD written by Jeffrey Roberson. It is heavily modified. Any bugs
  * in this code are likely due to the modifications.
  *
@@ -238,7 +238,7 @@ _Py_qsbr_unregister(PyThreadState *tstate)
     struct _PyThreadStateImpl *tstate_imp = (_PyThreadStateImpl*) tstate;
 
     // gh-119369: GIL must be released (if held) to prevent deadlocks, because
-    // we might not have an active tstate, which means taht blocking on PyMutex
+    // we might not have an active tstate, which means that blocking on PyMutex
     // locks will not implicitly release the GIL.
     assert(!tstate->_status.holds_gil);
 
diff --git a/Python/specialize.c b/Python/specialize.c
index 9ac428c3593f56..973baf2fbdc690 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -1301,7 +1301,7 @@ PyObject *descr, DescriptorClassification kind, bool 
is_method)
             }
             /* Cache entries must be unsigned values, so we offset the
              * dictoffset by MANAGED_DICT_OFFSET.
-             * We do the reverese offset in LOAD_ATTR_METHOD_LAZY_DICT */
+             * We do the reverse offset in LOAD_ATTR_METHOD_LAZY_DICT */
             dictoffset -= MANAGED_DICT_OFFSET;
             assert(((uint16_t)dictoffset) == dictoffset);
             cache->dict_offset = (uint16_t)dictoffset;

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to