]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
reduce diff
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Fri, 7 Nov 2025 21:05:21 +0000 (21:05 +0000)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Fri, 7 Nov 2025 21:05:21 +0000 (21:05 +0000)
Include/internal/pycore_code.h
Python/specialize.c

index 7970d674440c935b5475d1fe3b93cb4a538363fe..2d7d81d491c157adc196d332fe3d0eb4147828ac 100644 (file)
@@ -672,8 +672,6 @@ PyAPI_FUNC(int) _PyCode_ReturnsOnlyNone(PyCodeObject *);
  * compare bytes and str which can raise a BytesWarning exception. */
 extern PyObject* _PyCode_ConstantKey(PyObject *obj);
 
-#define NO_LOC_4 (128 | (PY_CODE_LOCATION_INFO_NONE << 3) | 3)
-
 
 #ifdef __cplusplus
 }
index 8a7ba00e2e101d003bd5f27f9740dff79be6a370..a1c5dedd61563bea2a046897ea4a3085f2c82dc6 100644 (file)
@@ -3196,6 +3196,12 @@ _Py_GatherStats_GetIter(_PyStackRef iterable)
  * be lifted.
  */
 
+#define NO_LOC_4 (128 | (PY_CODE_LOCATION_INFO_NONE << 3) | 3)
+
+static const PyBytesObject no_location = {
+    PyVarObject_HEAD_INIT(&PyBytes_Type, 1)
+    .ob_sval = { NO_LOC_4 }
+};
 
 #ifdef Py_GIL_DISABLED
 static _PyCodeArray init_cleanup_tlbc = {
@@ -3204,11 +3210,6 @@ static _PyCodeArray init_cleanup_tlbc = {
 };
 #endif
 
-static const PyBytesObject no_location = {
-    PyVarObject_HEAD_INIT(&PyBytes_Type, 1)
-    .ob_sval = { NO_LOC_4 }
-};
-
 const struct _PyCode8 _Py_InitCleanup = {
     _PyVarObject_HEAD_INIT(&PyCode_Type, 3),
     .co_consts = (PyObject *)&_Py_SINGLETON(tuple_empty),