We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7997fc9 commit 933f8f3Copy full SHA for 933f8f3
Doc/reference/datamodel.rst
@@ -853,6 +853,13 @@ Custom classes
853
A tuple containing the base classes, in the order of
854
their occurrence in the base class list.
855
856
+ :attr:`~class.__base__`
857
+ ``__base__`` corresponds to the :c:member:`~PyTypeObject.tp_base` in a
858
+ type object. At the C level, Python has a single inheritance model
859
+ that determines the memory layout of instances. There is a chain
860
+ involving base classes that contribute to the instance layout.
861
+ ``__base__`` is the base class that is involved in that chain.
862
+
863
:attr:`__doc__`
864
The class's documentation string, or ``None`` if undefined.
865
0 commit comments