8000 [3.13] Fix typos in comments (GH-120481) (#120774) · python/cpython@5d19490 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d19490

Browse files
miss-islingtonxyb
andauthored
[3.13] Fix typos in comments (GH-120481) (#120774)
(cherry picked from commit 656a1c8) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
1 parent 6b714d5 commit 5d19490

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Include/internal/pycore_frame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ _PyFrame_MakeAndSetFrameObject(_PyInterpreterFrame *frame);
214214

215215
/* Gets the PyFrameObject for this frame, lazily
216216
* creating it if necessary.
217-
* Returns a borrowed referennce */
217+
* Returns a borrowed reference */
218218
static inline PyFrameObject *
219219
_PyFrame_GetFrameObject(_PyInterpreterFrame *frame)
220220
{

Include/internal/pycore_gc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ struct _gc_runtime_state {
346346
Py_ssize_t long_lived_pending;
347347

348348
/* gh-117783: Deferred reference counting is not fully implemented yet, so
349-
as a temporary measure we treat objects using deferred referenence
349+
as a temporary measure we treat objects using deferred reference
350350
counting as immortal. The value may be zero, one, or a negative number:
351351
0: immortalize deferred RC objects once the first thread is created
352352
1: immortalize all deferred RC objects immediately

Python/qsbr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Implementation of safe memory reclamation scheme using
33
* quiescent states.
44
*
5-
* This is dervied from the "GUS" safe memory reclamation technique
5+
* This is derived from the "GUS" safe memory reclamation technique
66
* in FreeBSD written by Jeffrey Roberson. It is heavily modified. Any bugs
77
* in this code are likely due to the modifications.
88
*
@@ -238,7 +238,7 @@ _Py_qsbr_unregister(PyThreadState *tstate)
238238
struct _PyThreadStateImpl *tstate_imp = (_PyThreadStateImpl*) tstate;
239239

240240
// gh-119369: GIL must be released (if held) to prevent deadlocks, because
241-
// we might not have an active tstate, which means taht blocking on PyMutex
241+
// we might not have an active tstate, which means that blocking on PyMutex
242242
// locks will not implicitly release the GIL.
243243
assert(!tstate->_status.holds_gil);
244244

Python/specialize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ PyObject *descr, DescriptorClassification kind, bool is_method)
13011301
}
13021302
/* Cache entries must be unsigned values, so we offset the
13031303
* dictoffset by MANAGED_DICT_OFFSET.
1304-
* We do the reverese offset in LOAD_ATTR_METHOD_LAZY_DICT */
1304+
* We do the reverse offset in LOAD_ATTR_METHOD_LAZY_DICT */
13051305
dictoffset -= MANAGED_DICT_OFFSET;
13061306
assert(((uint16_t)dictoffset) == dictoffset);
13071307
cache->dict_offset = (uint16_t)dictoffset;

0 commit comments

Comments
 (0)
0