]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
address review
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sun, 26 Oct 2025 17:52:10 +0000 (17:52 +0000)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sun, 26 Oct 2025 17:52:10 +0000 (17:52 +0000)
.github/workflows/jit.yml
Include/internal/pycore_backoff.h
Python/bytecodes.c
Python/ceval_macros.h
Tools/cases_generator/tier1_generator.py

index c91328cf01cc2d1c02f8c365da7d07610a3f4847..6d0cd952442d8d19d37b0ec3962c6cda3c19cb77 100644 (file)
@@ -57,7 +57,7 @@ jobs:
       fail-fast: false
       matrix:
         target:
-# To re-enable later when we support thesee.
+# To re-enable later when we support these.
 #          - i686-pc-windows-msvc/msvc
 #          - x86_64-pc-windows-msvc/msvc
 #          - aarch64-pc-windows-msvc/msvc
@@ -71,7 +71,7 @@ jobs:
         llvm:
           - 19
         include:
-# To re-enable later when we support thesee.
+# To re-enable later when we support these.
 #          - target: i686-pc-windows-msvc/msvc
 #            architecture: Win32
 #            runner: windows-2022
index 86ae7885fd1c5e90d05d8a97e20a782253cd0685..8ca351c30258fab3b258c6ed0835a7f72805c6dd 100644 (file)
@@ -135,7 +135,7 @@ initial_unreachable_backoff_counter(void)
 }
 
 // Required to not get stuck in infinite specialization loops due to specialization failure.
-// We use 2 here as tnere are a few scenarios:
+// We use 2 here as there are a few scenarios:
 // 1. Freshly specialized from unspecialized, in which case the counter will be 1.
 // 2. Re-specialized from deopt, in which case the counter will be 1.
 // 3. Deopt -> Specialize -> Deopt -> Specialize, in which case the counter will be 2.
index bcc9f220335cd1195260c1aaf30c329e47de300a..cd098ebe0eb2b6d3f8066a767a5744e4f3f068d7 100644 (file)
@@ -3232,7 +3232,7 @@ dummy_func(
                     ERROR_NO_POP();
                 }
                 /* iterator ended normally */
-                /* This just sets the IP to what it expects (see normal _FOR_ITER */
+                /* This just sets the IP to what it expects (see normal _FOR_ITER) */
                 frame->instr_ptr += (oparg + 2 + INLINE_CACHE_ENTRIES_FOR_ITER);
                 EXIT_IF(true);
             }
index af992cc38ebbf263ea397fcf564f689fc67021e3..b845544beec6002de34bab0b6f598be627e58930 100644 (file)
@@ -209,7 +209,6 @@ do { \
         JUMP_TO_LABEL(start_frame);                      \
     } while (0)
 
-
 /* Tuple access macros */
 
 #ifndef Py_DEBUG
index a7961f4fbc7cce112ff5117699c2ca961d3cfea0..fb1874b1658cf91952dfb20c596aeaad092debc5 100644 (file)
@@ -288,7 +288,7 @@ def generate_tier1_cases(
         out.start_line()
         if reachable: # type: ignore[possibly-undefined]
             stack.flush(out)
-            out.emit(f"DISPATCH();\n")
+            out.emit("DISPATCH();\n")
         out.start_line()
         out.emit("}")
         out.emit("\n")