Expert Python Tutorial #2 – Dunder/Magic Methods & The Python Data Model

///Expert Python Tutorial #2 – Dunder/Magic Methods & The Python Data Model

Expert Python Tutorial #2 – Dunder/Magic Methods & The Python Data Model

FavoriteLoadingAdd to favorites

In this expert python tutorial I will discuss dunder methods/magic methods and the python data model. These features are fundamental to understand to grasp an idea of how built in python objects work and how we can modify object behavior.

⭐️ Thanks to Kite for sponsoring this video! Download the best AI automcolplete for python programming for free:

Playlist:

Data Model Documentation:

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

📸 Instagram:
🌎 Website
📱 Twitter:
⭐ Discord:
📝 LinkedIn:
📂 GitHub:
🔊 Podcast:

💵 One-Time Donations:
💰 Patreon:
◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

⭐ Tags ⭐
– Tech With Tim
– Python Tutorials
– Dunder Methods Python
– Magic Methods Python
– Python Data Model
– Python Dunder Methods

⭐ Hashtags ⭐
#Python

source

By |2020-10-31T10:24:49+00:00October 31st, 2020|Python Video Tutorials|29 Comments

29 Comments

  1. Kobe Bryant October 31, 2020 at 10:24 am - Reply

    Stopped to give a thumb at 0:46

  2. dan west October 31, 2020 at 10:24 am - Reply

    Tech With Tim: This an excellent video: the information is very easy to comprehend and your pacing, video, and audio are perfect! Thanks – I'm a subscriber now.

  3. Patrik Andersson October 31, 2020 at 10:24 am - Reply

    Great video Tim!

  4. TheFootballPlaya October 31, 2020 at 10:24 am - Reply

    Dude….. that was an awesome class. I've seen those all over the place, I didn't know their name. I learned so much. Thank you!

  5. 4TH4RV October 31, 2020 at 10:24 am - Reply

    This was so good!!

  6. Edge Crust October 31, 2020 at 10:24 am - Reply

    just loved it

  7. khalfaoui saad October 31, 2020 at 10:24 am - Reply

    thanks that was a great way of explaining it , can you give some concret data models implementation use cases that one might come across while developing a web app for exemple (flask ) ?

  8. Tushar Kuntawar October 31, 2020 at 10:24 am - Reply

    Man… this is mind-blowing. You gave me sight.

  9. Nicholas Ziglio October 31, 2020 at 10:24 am - Reply

    This is the best explanation I have seen on this. Thank you so much, it is a million times more clear now!

  10. Daniel Keehl October 31, 2020 at 10:24 am - Reply

    Can anyone say what method stands for '='? (like x = 5), and what class it belongs? Can't find anywhere, or maybe have found and can't figure out how it works

  11. Rob McKiernan October 31, 2020 at 10:24 am - Reply

    Oh my god, I never connected that they're called Dunder because they're Double UNDERscore…

  12. Budi Setyawan October 31, 2020 at 10:24 am - Reply

    Magic method = kind of operator overloading or function overriding?

  13. Michael Knox October 31, 2020 at 10:24 am - Reply

    Love it. Like and subscribed..

  14. Claire M October 31, 2020 at 10:24 am - Reply

    Very nice video, you’re very good at explaining.

  15. axiomvp October 31, 2020 at 10:24 am - Reply

    Nice!

  16. Swadhikar C October 31, 2020 at 10:24 am - Reply

    excellent, liked, subscribed and clicked bell!

  17. Goishen October 31, 2020 at 10:24 am - Reply

    This is really helpful. I think, as a beginning programmer, that we are trying to reach so far out, that we forget some of the base level stuff that's right in front of us. My 2 cents, at least.

  18. Sandip Poddar October 31, 2020 at 10:24 am - Reply

    Sir, I came across a confusion. If I write both the _repr()_ and __str__() methods in one class, which will be returned when I print the object of the class? Please explain. Thanks in advance.

  19. ianpan870102 October 31, 2020 at 10:24 am - Reply

    Great series Tim! So glad I came across this.

  20. Đăng Khoa Nguyễn October 31, 2020 at 10:24 am - Reply

    Could you please show me your sublome packages for python? It seems convenient.
    Btw, tks for your tutorial, its really helpful <3

  21. Genetical TM October 31, 2020 at 10:24 am - Reply

    6:59 in the _mul_ dunder while type checking, wouldn't `isinstance` be better than `type`?

  22. Jake Callahan October 31, 2020 at 10:24 am - Reply

    One great thing you can do with inspect is to go back in the call chain to reference objects leading into where you're currently at.
    You can then use those objects as you see fit. Say for example you have a base class whose child called you in a super() call. You can then get the instance of that object and use it to call another of your methods or just refuse to act if it doesn't meet certain conditions.
    I plan on covering things like this later!

  23. adryel barros October 31, 2020 at 10:24 am - Reply

    And this was how I created a number that is bigger then all the odd numbers, but smaller then all the even numbers

  24. girish singh October 31, 2020 at 10:24 am - Reply

    So python already implemented operator overloading for some and through dunder we can add this to others

  25. Steeven Bosse October 31, 2020 at 10:24 am - Reply

    At first I thought you said dunder mifflin

  26. Mike's Tomb Raider Vids October 31, 2020 at 10:24 am - Reply

    Why haven't you registered your Sublime ??

  27. יהוה October 31, 2020 at 10:24 am - Reply

    This is great! Looking forward to the rest of the series !

  28. Mohammed Fareedh October 31, 2020 at 10:24 am - Reply

    I wondered, what a clever teaching skill you had. At past I didn't understand dunder methods while having a course on udemy but now its cleared, Thanks Tim

  29. Juan Vásquez October 31, 2020 at 10:24 am - Reply

    What would be the difference between defining a class like this: class Person: and class Person():
    (with and without the parentheses) Thanks in advance

Leave A Comment

*