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 @@ -225,7 +225,8 @@ The following functions and structs are used to create
225
225
* ``Py_nb_add `` to set :c:member: `PyNumberMethods.nb_add `
226
226
* ``Py_sq_length `` to set :c:member: `PySequenceMethods.sq_length `
227
227
228
- The following fields cannot be set using :c:type: `PyType_Spec ` and :c:type: `PyType_Slot `:
228
+ The following fields cannot be set at all using :c:type: `PyType_Spec ` and
229
+ :c:type: `PyType_Slot `:
229
230
230
231
* :c:member: `~PyTypeObject.tp_dict `
231
232
* :c:member: `~PyTypeObject.tp_mro `
@@ -239,13 +240,21 @@ The following functions and structs are used to create
239
240
(see :ref: `PyMemberDef <pymemberdef-offsets >`)
240
241
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
241
242
(see :ref: `PyMemberDef <pymemberdef-offsets >`)
243
+
244
+ The following fields cannot be set using :c:type:`PyType_Spec` and
245
+ :c:type:`PyType_Slot` under the limited API:
246
+
242
247
* :c:member:`~PyBufferProcs.bf_getbuffer`
243
248
* :c:member:`~PyBufferProcs.bf_releasebuffer`
244
249
245
250
Setting :c:data:`Py_tp_bases` may be problematic on some platforms.
246
251
To avoid issues, use the *bases* argument of
247
252
:py:func:`PyType_FromSpecWithBases` instead.
248
253
254
+ .. versionchanged:: 3.9
255
+
256
+ Slots in :c:type:`PyBufferProcs` in may be set in the unlimited API.
257
+
249
258
.. c:member:: void *PyType_Slot.pfunc
250
259
251
260
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