MENU

Fun & Interesting

When to (Not) Use Dunder Methods?

ArjanCodes 31,507 2 years ago
Video Not Working? Fix It Now

👷 Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis. In this video, I’ll discuss dunder methods, when to use them, and when to avoid them. Dunder methods are also called magic methods because they allow you to basically change everything that Python does under the hood. 🪄 But if you're not careful with them, they can lead to confusing code. 🐱💻 Git repository: https://git.arjan.codes/2023/dunder 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 0:37 The Python data model 2:55 When to override dunder methods 8:40 When to not override dunder methods 19:10 Final thoughts #arjancodes #softwaredesign #python

Comment