Skip to content

Commit 54ed1f3

Browse files
committed
fix MRO summary discription in tutorial
The tutorial classes chapter multiple inheritance section described MRO as depth first. That was the case for the old classic classes in Python2.
1 parent 8f2c0f7 commit 54ed1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ multiple base classes looks like this::
638638
<statement-N>
639639

640640
For most purposes, in the simplest cases, you can think of the search for
641-
attributes inherited from a parent class as depth-first, left-to-right, not
641+
attributes inherited from a parent class as breadth-first, left-to-right, not
642642
searching twice in the same class where there is an overlap in the hierarchy.
643643
Thus, if an attribute is not found in :class:`!DerivedClassName`, it is searched
644644
for in :class:`!Base1`, then (recursively) in the base classes of :class:`!Base1`,

0 commit comments

Comments
 (0)