From 54ed1f39701d9eb25608aa3d3416937cb086f43b Mon Sep 17 00:00:00 2001 From: Drew Arnett Date: Wed, 23 Oct 2024 23:27:32 +0000 Subject: [PATCH] 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. --- Doc/tutorial/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 492568961d8a51..9f42e13a8e8832 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -638,7 +638,7 @@ multiple base classes looks like this:: For most purposes, in the simplest cases, you can think of the search for -attributes inherited from a parent class as depth-first, left-to-right, not +attributes inherited from a parent class as breadth-first, left-to-right, not searching twice in the same class where there is an overlap in the hierarchy. Thus, if an attribute is not found in :class:`!DerivedClassName`, it is searched for in :class:`!Base1`, then (recursively) in the base classes of :class:`!Base1`,