Skip to content

Commit 00c3942

Browse files
committed
tweaks
1 parent 2dd55e0 commit 00c3942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ searched when looking up an attribute on a class. See :ref:`python_2.3_mro` for
15161516
description of how Python determines the MRO for a class.
15171517

15181518
Multiple inheritance is not always allowed. Attempting to define a class with multiple
1519-
inheritance will raise an error if one of the bases is invalid, if a consistent MRO
1519+
inheritance will raise an error if one of the bases does not allow subclassing, if a consistent MRO
15201520
cannot be created, if no valid metaclass can be determined, or if there is an instance
15211521
layout conflict. We'll discuss each of these in turn.
15221522

@@ -1555,7 +1555,7 @@ child class. It must be a metaclass that is a subclass of
15551555
all other candidate metaclasses. If no such metaclass exists among the candidates,
15561556
the class cannot be created, as explained in :ref:`metaclass-determination`.
15571557

1558-
Finally, the memory layouts of the bases must be compatible. This means that it must be
1558+
Finally, the instance layouts of the bases must be compatible. This means that it must be
15591559
possible to compute a *solid base* for the class. Exactly which classes are solid bases
15601560
depends on the Python implementation.
15611561

0 commit comments

Comments
 (0)