From f65d17bf471ae5932ebd8baacedca83bfc85bdb1 Mon Sep 17 00:00:00 2001 From: byundojin <103907292+byundojin@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:51:25 +0900 Subject: [PATCH] updated tp_flags initialization to use inplace or (#120625) --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b042e64a188..447e561c0d4 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -8395,7 +8395,7 @@ type_ready(PyTypeObject *type, int initial) } /* All done -- set the ready flag */ - type->tp_flags = type->tp_flags | Py_TPFLAGS_READY; + type->tp_flags |= Py_TPFLAGS_READY; stop_readying(type); assert(_PyType_CheckConsistency(type));