From: byundojin <103907292+byundojin@users.noreply.github.com> Date: Wed, 3 Jul 2024 07:51:25 +0000 (+0900) Subject: updated tp_flags initialization to use inplace or (#120625) X-Git-Tag: v3.14.0a1~1247 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f65d17bf471ae5932ebd8baacedca83bfc85bdb1;p=thirdparty%2FPython%2Fcpython.git updated tp_flags initialization to use inplace or (#120625) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b042e64a188d..447e561c0d44 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));