Skip to content

Commit 20a5da7

Browse files
furkanonderencukou
andauthored
Document __base__ attribute with single impl-detail block
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 96381b4 commit 20a5da7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Doc/reference/datamodel.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,15 +1221,11 @@ Special attributes
12211221
``X.__bases__`` will be exactly equal to ``(A, B, C)``.
12221222

12231223
* - .. attribute:: type.__base__
1224-
- The base class that determines the instance layout. This attribute
1225-
identifies the single base class in the inheritance chain that is
1226-
responsible for the memory layout of instances, corresponding to
1227-
:c:member:`~PyTypeObject.tp_base` at the C level.
1228-
1229-
.. impl-detail::
1230-
Note that behavior of the ``__base__`` attribute is dependent on the
1231-
:term:`CPython` implementation.
1224+
- .. impl-detail::
12321225

1226+
The single base class in the inheritance chain that is responsible
1227+
for the memory layout of instances. This attribute corresponds to
1228+
:c:member:`~PyTypeObject.tp_base` at the C level.
12331229
* - .. attribute:: type.__doc__
12341230
- The class's documentation string, or ``None`` if undefined.
12351231
Not inherited by subclasses.

0 commit comments

Comments
 (0)