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.
👷 Join the FREE Code Diagnosis Workshop to help you review code more effectively using my 3-Factor Diagnosis Framework:
💻 ArjanCodes Blog:
🐱💻 Git repository:
✍🏻 Take a quiz on this topic:
🎓 Courses:
The Software Designer Mindset:
The Software Architect Mindset: Pre-register now!
Next Level Python: Become a Python Expert:
The 30-Day Design Challenge:
🛒 GEAR & RECOMMENDED BOOKS:
👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
Social channels:
💬 Discord:
🐦Twitter:
🌍LinkedIn:
🕵Facebook:
📱Instagram:
♪ Tiktok: @arjancodes
👀 Code reviewers:
- Yoriz
- Ryan Laursen
- Dale Hagglund
🎥 Video edited by Mark Bacskai:
🔖 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
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
1 view
890
286
18 hours ago 00:03:53 1
This Tiny SanDisk CFexpress Card Is Faster Than Your SSD?! The 480GB Beast for 8K Shooters! - YouTube
2 days ago 00:03:02 1
NEW HIT SINGLE: Hello, Donald? (Musk and Trump Make Up)
2 days ago 00:00:46 2
Get wet and wild (safely) with Helen Flanagan’s outrageously sexy pool rules - FHM (UK)
3 days ago 00:10:07 3
Why I Don’t Expect a Windows 10 Apocalypse
4 days ago 00:15:01 2
‼️Only THOSE Who Are Undergoing a REAL Spiritual Awakening Feel This‼️