]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix duplicate word typos in comments (#106225)
authorMd Sadman Chowdhury <61442059+SpicyCatGames@users.noreply.github.com>
Sat, 1 Jul 2023 19:47:14 +0000 (01:47 +0600)
committerGitHub <noreply@github.com>
Sat, 1 Jul 2023 19:47:14 +0000 (12:47 -0700)
Include/cpython/object.h
Objects/frameobject.c
Python/initconfig.c

index 71d268fae1a6dcad0e056deb97ec288f327107d6..d681435c845459a92c1693466402915e39dcbb61 100644 (file)
@@ -231,7 +231,7 @@ struct _typeobject {
 };
 
 /* This struct is used by the specializer
- * It should should be treated as an opaque blob
+ * It should be treated as an opaque blob
  * by code other than the specializer and interpreter. */
 struct _specialization_cache {
     // In order to avoid bloating the bytecode with lots of inline caches, the
index 98f4a0378bf76d433aaba60d1c930efd3954baec..0158d72d6b4f984727f056c4f9149589faccf4a5 100644 (file)
@@ -1186,7 +1186,7 @@ frame_get_var(_PyInterpreterFrame *frame, PyCodeObject *co, int i,
                     // (likely) MAKE_CELL must have executed already.
                     value = PyCell_GET(value);
                 }
-                // (likely) Otherwise it it is an arg (kind & CO_FAST_LOCAL),
+                // (likely) Otherwise it is an arg (kind & CO_FAST_LOCAL),
                 // with the initial value set when the frame was created...
                 // (unlikely) ...or it was set to some initial value by
                 // an earlier call to PyFrame_LocalsToFast().
index 1dcefd478eefea9c65d1ce3075f88f9333a04eef..147cb370412cd6545408e71aac7a0ac3f560e979 100644 (file)
@@ -538,7 +538,7 @@ _Py_SetArgcArgv(Py_ssize_t argc, wchar_t * const *argv)
     _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
 
     // XXX _PyRuntime.orig_argv only gets cleared by Py_Main(),
-    // so it it currently leaks for embedders.
+    // so it currently leaks for embedders.
     res = _PyWideStringList_Copy(&_PyRuntime.orig_argv, &argv_list);
 
     PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc);