[Language skills Python] MRO Method Resolution Order - Advanced [Tutorial]

preview_player
Показать описание
This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time!

If you like please subscribe to my channel!

Рекомендации по теме
Комментарии
Автор

Thanks for the video, which is engaging and interesting to watch. Please note that Python uses C3 linearization, not DFS (Depth First Search), which is very different.

yurypitsishin
Автор

The MRO is simple. But the classes from left to right (in the video it is put the opposite direction) then trace the arrows just before the object. After listing them go back to M and trace just before object again adding them after each other. At the end remove all duplicates that are nearest to M. Naturally object will be at the end. So if I trace all of them it will be like this: After removing duplicates and adding object at the end it will be

Mojojojojojojo-pv
Автор

hahahhaah you got me answering questions outloud here 05:33 like you're Dora the Explorer and Im a toddler.
excellent video

ajsantos
Автор

thank u bruh this the best tutorial I have watched so far

b-mani
Автор

Thank you for the clear explanation. When you said at the end "if you write code like this, you're writing bad code." I'm like why the hell did I watch this LOL.

diederikvisser
Автор

I was really struggling with the problem you explained later in the video, the one with complicated inheritance
thank you for the clear explanation

adityakalhan
Автор

I cannot believe this channel has so low views! Sir you are a lgend!

tassoskat
Автор

Thank you that you touch this topic because I thought that the 'diamond ' resolution order will work all the time at the same rules left -> right and from below to above.

RuslanSkiraUkraine
Автор

Thanks for the video, thumbs up! God bless you.

i_am_a_real_cat
Автор

you could have explained why that is the order, rather than saying out of scope.

vikramchamala
Автор

The diagram you have shown and the inheritance you have implemented are NOT same... Guys implement the inheritance from the diagram and then check mro yourself the answer for diagram mro is MAXBYZO

Icelander
welcome to shbcf.ru