Skip to content

Commit a67116e

Browse files
committed
Doc change in Py_tp_bases
1 parent ca86080 commit a67116e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/c-api/type.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,11 @@ Slot values may not be ``NULL``, except for the following:
536536
using :c:data:`Py_tp_vectorcall`. See the field's documentation
537537
for details.
538538
539+
.. versionchanged:: 3.15
540+
The :c:data:`Py_tp_bases` slot may be set to a single type object,
541+
making it equivalent to the :c:data:`Py_tp_base` slot.
542+
Previously, a tuple of types was required.
543+
539544
The following slots correspond to fields in the underlying type structure,
540545
but need extra remarks for use as slots:
541546

0 commit comments

Comments
 (0)