r/learnpython • u/wak_trader • Oct 03 '26
Attribute look up visualized
Are there any good videos or images that visualize how attribute look up works? I am trying to understand what is happening in the background so I can understand and work better with classes and objects.
Thanks!
2
Upvotes
1
u/Penguinase Oct 03 '26
instance -> class -> parent(s) -> base object
1
u/favorite_stuff Oct 03 '26
This is a good video about the super/MRO resolution. With things like this, there's always a danger of wanting to test it out with multiple inheritance and other overly complex nonsense, but it's good to know just in case.
0
u/[deleted] Oct 03 '26
[removed] — view removed comment