File tree 1 file changed +10
-1
lines changed 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,8 @@ The following functions and structs are used to create
215
215
* ``Py_nb_add `` to set :c:member: `PyNumberMethods.nb_add `
216
216
* ``Py_sq_length `` to set :c:member: `PySequenceMethods.sq_length `
217
217
218
- The following fields cannot be set using :c:type: `PyType_Spec ` and :c:type: `PyType_Slot `:
218
+ The following fields cannot be set at all using :c:type: `PyType_Spec ` and
219
+ :c:type: `PyType_Slot `:
219
220
220
221
* :c:member: `~PyTypeObject.tp_dict `
221
222
* :c:member: `~PyTypeObject.tp_mro `
@@ -229,13 +230,21 @@ The following functions and structs are used to create
229
230
(see :ref: `PyMemberDef <pymemberdef-offsets >`)
230
231
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
231
232
(see :ref: `PyMemberDef <pymemberdef-offsets >`)
233
+
234
+ The following fields cannot be set using :c:type:`PyType_Spec` and
235
+ :c:type:`PyType_Slot` under the limited API:
236
+
232
237
* :c:member:`~PyBufferProcs.bf_getbuffer`
233
238
* :c:member:`~PyBufferProcs.bf_releasebuffer`
234
239
235
240
Setting :c:data:`Py_tp_bases` may be problematic on some platforms.
236
241
To avoid issues, use the *bases* argument of
237
242
:py:func:`PyType_FromSpecWithBases` instead.
238
243
244
+ .. versionchanged:: 3.9
245
+
246
+ Slots in :c:type:`PyBufferProcs` in may be set in the unlimited API.
247
+
239
248
.. c:member:: void *PyType_Slot.pfunc
240
249
241
250
The desired value of the slot. In most cases, this is a pointer
You can’t perform that action at this time.
0 commit comments