- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33.3k
gh-125904: Fix MRO summary description in tutorial #125906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-125904: Fix MRO summary description in tutorial #125906
Conversation
The tutorial classes chapter multiple inheritance section described MRO as depth first. That was the case for the old classic classes in Python2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|  | ||
| 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 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the following example in L643-L645?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the following example in L643-L645?
Good point. Have been thinking about this more. Maybe should cancel the PR and discuss this portion of the docs further in the issue ticket #125904?
| Cancelling this request. Leaving issue #125904 open to consider further how to update this section. | 
The tutorial classes chapter multiple inheritance section described MRO as depth first. That was the case for the old classic classes in Python2.
📚 Documentation preview 📚: https://cpython-previews--125906.org.readthedocs.build/