Expert Python Tutorial #3 – Metaclasses & How Classes Really Work

///Expert Python Tutorial #3 – Metaclasses & How Classes Really Work

Expert Python Tutorial #3 – Metaclasses & How Classes Really Work

FavoriteLoadingAdd to favorites

In this video I discuss metaclasses and how classes actually work in python. This expert level feature (metaclasses) allows you to hook into the creation of a class and modify it. You can do things like enforce constraints on subclasses, remove attributes and much more.

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

Playlist:

More Info on Metaclasses:

◾◾◾◾◾
💻 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
– MetaClasses Python
– Python Metaclasses explained
– Metaclass Tutorial Python
– Python Metclasses

⭐ Hashtags ⭐
#Python

source

By |2020-11-19T10:45:22+00:00November 19th, 2020|Python Video Tutorials|39 Comments

39 Comments

  1. Jill Valentine November 19, 2020 at 10:45 am - Reply

    I wonder can I build meta classes based on int class instead of type?

  2. Ico - The Redstone Surgeon November 19, 2020 at 10:45 am - Reply

    Yeah but if classes are created by metaclasses, and metaclasses are just classes, what is creating the metaclasses? Did we just prove god?!?

  3. magno November 19, 2020 at 10:45 am - Reply

    That's a nice, clear, and simple demonstration and explanation! I wish there were an example of a simple use case where a meta class is useful.

  4. Rafayet Ullah November 19, 2020 at 10:45 am - Reply

    your background red color is very distracting

  5. Wertux HD November 19, 2020 at 10:45 am - Reply

    If god created meta and meta is the foundation to physics and life.. Young boyy you are messing with really high level language

  6. TheFootballPlaya November 19, 2020 at 10:45 am - Reply

    again, your killing it man. nice lecture.

  7. Nirmal Matt Music November 19, 2020 at 10:45 am - Reply

    Me : Everything in python were classes??
    Tim: It always has been 🔫🔫

  8. Shubham Sharma November 19, 2020 at 10:45 am - Reply

    Great content

  9. Slayer November 19, 2020 at 10:45 am - Reply

    @1:54 Would you mind citing some object-oriented programming language that doesn't support "local classes"?
    Because those programming languages I remember (C++, PHP, Java, JavaScript, etc.) support it, although it is a bad practice.

  10. Anish Man November 19, 2020 at 10:45 am - Reply

    Neat!

  11. Helgurd Mirza November 19, 2020 at 10:45 am - Reply

    Guys, when you get to 7:15 just very carefully there is something you can spend 10 years programming until you figure out why we use Parentheses with functions and Classes.

  12. Aaron Baron64 November 19, 2020 at 10:45 am - Reply

    i liked how hacking works in deus ex

  13. Nitro Zeus November 19, 2020 at 10:45 am - Reply

    Thanks

  14. Aman Thakur November 19, 2020 at 10:45 am - Reply

    Buddy, You are awesome. Your videos are much better than the online course that I have bought recently. Thank you

  15. ahmad ali November 19, 2020 at 10:45 am - Reply

    every thing you said is going above of my head😂😂

  16. onyilimba martins mclaren tochukwu November 19, 2020 at 10:45 am - Reply

    At the start i almost unliked your video but it got better. Please try and slow down, especially with your speech speed.

  17. Budi Setyawan November 19, 2020 at 10:45 am - Reply

    Kinda primitive object in javascript?

  18. Eduardo b November 19, 2020 at 10:45 am - Reply

    Your videos are really helpful, thanks a lot for your work…

  19. Cheskel Twersky November 19, 2020 at 10:45 am - Reply

    This video makes me feel like God😋

  20. Alex Joslin November 19, 2020 at 10:45 am - Reply

    best tutorial on this ont there. 200+ like ration, nice job

  21. visitor November 19, 2020 at 10:45 am - Reply

    Good content…thank you Tim

  22. Laurent PRAT November 19, 2020 at 10:45 am - Reply

    add_attributes() is inherited from parent, you do not need to (re)specify as method into the class before calling it.

  23. Paul Marmagne November 19, 2020 at 10:45 am - Reply

    Excellent video. I've been trying to understand this concept for quite a while now! I was kind of worried that I wasn't going to be able to keep up with the speed at which you taught but you really explained it well. Thank you so much!

  24. Burdacious November 19, 2020 at 10:45 am - Reply

    So a python metaclass is like a java interface (or abstract class)? You can require any class created through a metaclass to implement certain things—just like in java you can do "class myClass implements myInterface" so that myClass must implement the stuff in myInterface?

  25. Михайло Роздорожнюк November 19, 2020 at 10:45 am - Reply

    The best video about metaclass. Thanks

  26. Rodrigo Fernandes November 19, 2020 at 10:45 am - Reply

    Good video, very well explained

  27. Maik Tremel November 19, 2020 at 10:45 am - Reply

    Good stuff. Thanks!

  28. What's in the Papers November 19, 2020 at 10:45 am - Reply

    Very useful useless information!

  29. Isaac Kersey-Schutta November 19, 2020 at 10:45 am - Reply

    I love you tech Tim keep up he good work

  30. Undisclosed Music November 19, 2020 at 10:45 am - Reply

    Is the top level object a type or is type the top level object? Or better asked, what is the relationship between type and object (the builtin)?

  31. LMagicz Lukas November 19, 2020 at 10:45 am - Reply

    Thank you very much for a great tutorial! Keep it up!

  32. Brrrice November 19, 2020 at 10:45 am - Reply

    Awesome video!

  33. Nitesh dubey November 19, 2020 at 10:45 am - Reply

    your youtube video all about python.
    But your website in ruby

  34. Rohan Jnr November 19, 2020 at 10:45 am - Reply

    Can we have a tutorial on decorators.

  35. Rodrigo Sepúlveda November 19, 2020 at 10:45 am - Reply

    So what’s the type of type?

  36. flamboyant person November 19, 2020 at 10:45 am - Reply

    I beg you to please please continue this series of how classes work because I have seen so many videos on python class and object and they only tell "class Person and object p1 p2 etc" they have never explained anything beyond that. This is the best series on youtube on classes. Pllllllllllllllllllllllllllllllllllllllllllllllllllllzzzzzzzzzzzzzzzzzzzzzzzzzzzz don't stop continue it. God bless you thank you so much.

  37. vitali estonia November 19, 2020 at 10:45 am - Reply

    Python is the most payable programming. lang at the moment, here is the stats at least
    https://www.youtube.com/watch?v=aMFDSLNtO74&t=

  38. Tamil Programmer's November 19, 2020 at 10:45 am - Reply

    Bro where did you learn these concepts?

  39. Just Jack November 19, 2020 at 10:45 am - Reply

    It was enjoyable, and fun tutorial and making fall in love with python, its awesome, this is something new thing that I saw in python…,

Leave A Comment

*