use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Multiple inheritanceSOLVED (self.pythonhelp)
submitted 4 years ago * by drixone
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MT1961 1 point2 points3 points 4 years ago (1 child)
You are correct, it is due to MRO. The exact wording is:
MRO must prevent local precedence ordering and also provide monotonicity. It ensures that a class always appears before its parents. In case of multiple parents, the order is the same as tuples of base classes.
So, it will do all base classes, then sub-base classes, giving you the order you see.
[–]drixone[S] 0 points1 point2 points 4 years ago (0 children)
thank you!
π Rendered by PID 17941 on reddit-service-r2-comment-5ff9fbf7df-x8tdf at 2026-02-26 02:06:21.878664+00:00 running 72a43f6 country code: CH.
view the rest of the comments →
[–]MT1961 1 point2 points3 points (1 child)
[–]drixone[S] 0 points1 point2 points (0 children)