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
285
1 month ago 00:02:22 1
Верное исполнение романса Сергея Рахманинова “Здесь хорошо“. Исполняет Юрий Гуляев, 1978 год
1 month ago 00:04:14 1
Paramore: Decode [OFFICIAL VIDEO]
1 month ago 02:01:18 1
Half-Life 2: 20th Anniversary Documentary
1 month ago 00:03:37 1
Админы Актуального Курска и другие куряне, покажите общественные туалеты Курска .?!) #курскиймайор
1 month ago 00:03:07 1
Two Faced (Official Music Video) - Linkin Park
1 month ago 00:00:32 1
…but the people are retarded
1 month ago 00:03:02 1
Milk & Cookies | Holiday Song for Kids | Rhymington Square
1 month ago 00:02:59 1
Monster Girl Quest Paradox Part 3 OST - Ending 4-3
1 month ago 00:05:32 1
Queen - Bohemian Rhapsody (Live at Rock Montreal, 1981) [HD]
1 month ago 00:04:49 1
Play To Earn🔥This New Play to Earn Game is About to Make a Lot of People RICH
1 month ago 00:04:18 1
Real Life Elementary Episode 1.
1 month ago 00:27:21 1
When Shoegaze Meets Electronica
1 month ago 00:06:43 1
Shrooms on N313 soviet oscilloscope
1 month ago 00:02:03 1
d4vd - “Remember Me” (from Arcane Season 2)
1 month ago 00:25:19 1
Существа в открытом космосе возможны? / Большой Взрыв наоборот / Астрообзор #169
1 month ago 00:03:58 1
The Shira Choir x The Kiffness - Im Hashem Lo Yivneh Bayis (Psalm 127 DANCE REMIX)
1 month ago 00:03:10 1
Sometimes I Like To Lie - AnnenMayKantereit
1 month ago 00:14:36 1
TOP 40❗FAILS 4X4 THE CRAZIEST OFF ROAD ACCIDENTS ❌ INSANE FAILS AND WINS AMAZING VEHICLES 2024
1 month ago 00:04:02 1
Ich hatt einen Kameraden [German soldier funeral song][+English translation]
1 month ago 01:04:51 18
Half in the Bag: Top 10 Horror Movies (2024) Part 2
1 month ago 00:03:57 1
Don Toliver - BROTHER STONE (FEAT. KODAK BLACK) [Official Music Video]
1 month ago 00:07:18 1
President Biden Addresses Nation: ‘You Can’t Love Your Country Only When You Win’ | WSJ
1 month ago 00:09:01 1
Anna Amalie von Preußen (1723-1787) - Sonata per il Flauto traverso (1771)
1 month ago 00:02:10 1
Glockenspiel - “Corpse Bride Theme“ Lesson by Project Musica 🎶