Skip to content
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

posts/c3-linearization-and-python-mro--method-resolution-order/ #5

Open
utterances-bot opened this issue Feb 27, 2024 · 1 comment
Open

Comments

@utterances-bot
Copy link

C3 Linearization and Python MRO(Method Resolution Order) · KK's Blog (fromkk)

    Python supports multiple inheritance, its class can be derived from more than one base classes. If the specified attribute or methods was not found in current class, how to decide the search sequence from superclasses? In simple scenario, we know left-to right, bottom to up.

https://www.fromkk.com/posts/c3-linearization-and-python-mro--method-resolution-order/

Copy link

7vazier commented Feb 27, 2024

Here's a small mistake in MRO of M, the answer should be [M,B,A,X,Y,Z,obj]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants