https://github.com/python/cpython/commit/f65d17bf471ae5932ebd8baacedca83bfc85bdb1
commit: f65d17bf471ae5932ebd8baacedca83bfc85bdb1
branch: main
author: byundojin <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2024-07-03T13:21:25+05:30
summary:

updated tp_flags initialization to use inplace or (#120625)

files:
M Objects/typeobject.c

diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index b042e64a188d9d..447e561c0d4440 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));

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to