File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ the definition of all other Python objects.
68
68
69
69
.. versionchanged :: 3.10
70
70
:c:func: `Py_TYPE() ` is changed to the inline static function.
71
+ Use :c:func: `Py_SET_TYPE() ` to set an object type.
71
72
72
73
73
74
.. c :function :: int Py_IS_TYPE (PyObject *o, PyTypeObject *type)
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ Optimizations
91
91
=============
92
92
93
93
94
- Build and C API Changes
95
- =======================
94
+ Build Changes
95
+ =============
96
96
97
97
98
98
@@ -105,11 +105,12 @@ Removed
105
105
=======
106
106
107
107
108
+ C API Changes
109
+ =============
108
110
109
111
Porting to Python 3.10
110
- ======================
111
-
112
- This section lists previously described changes and other bugfixes
113
- that may require changes to your code.
114
-
112
+ ----------------------
115
113
114
+ * Since :c:func: `Py_TYPE() ` is changed to the inline static function,
115
+ ``Py_TYPE(obj) = new_type `` should be ported to use :c:func: `Py_SET_TYPE() `.
116
+ (Contributed by Dong-hee Na in :issue: `39573 `.)
You can’t perform that action at this time.
0 commit comments