summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/codeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 0857554adc..b1e8ec9f09 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -550,7 +550,7 @@ _PyCode_ConstantKey(PyObject *op)
PyTuple_SET_ITEM(tuple, i, item_key);
}
- key = PyTuple_Pack(3, Py_TYPE(op), op, tuple);
+ key = PyTuple_Pack(2, tuple, op);
Py_DECREF(tuple);
}
else if (PyFrozenSet_CheckExact(op)) {
@@ -584,7 +584,7 @@ _PyCode_ConstantKey(PyObject *op)
if (set == NULL)
return NULL;
- key = PyTuple_Pack(3, Py_TYPE(op), op, set);
+ key = PyTuple_Pack(2, set, op);
Py_DECREF(set);
return key;
}
@@ -595,7 +595,7 @@ _PyCode_ConstantKey(PyObject *op)
if (obj_id == NULL)
return NULL;
- key = PyTuple_Pack(3, Py_TYPE(op), op, obj_id);
+ key = PyTuple_Pack(2, obj_id, op);
Py_DECREF(obj_id);
}
return key;