From 5110fa67509eb32b51a8db69e538fd1ab3003286 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 b042e64a188d9da..447e561c0d4440f 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));