💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
In this video, I’ll show you 13 things in Python that are just weird. The last one is really confusing, especially if you’re a new Python developer. I’ll go through each of these with a code example and I’ll explain why it’s like that.
🔥 GitHub Repository: https://git.arjan.codes/2024/weird_th...
➡️ WTF Repository: https://github.com/satwikkansal/wtfpy...
📨 The Friday Loop by ArjanCodes Newsletter: https://thefridayloop.com
💻 ArjanCodes Blog: https://www.arjancodes.com/blog
✍🏻 Take a quiz on this topic: https://www.learntail.com/quiz/xzdmcl
🎓 Courses:
The Software Designer Mindset: https://www.arjancodes.com/courses/tsdm
The Software Architect Mindset: https://www.arjancodes.com/courses/tsam
Next Level Python: Become a Python Expert: https://www.arjancodes.com/courses/nlp
The 30-Day Design Challenge: https://www.arjancodes.com/courses/30ddc
👍 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: https://discord.arjan.codes
🐦 X: https://x.com/arjancodes
🌍 LinkedIn: / arjancodes
🕵 Facebook: / arjancodes
📱 Instagram: / arjancodes
♪ Tiktok: / arjancodes
🎥 Video edited by Mark Bacskai: / bacskaimark
🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes
🔖 Chapters:
0:00 Intro
0:12 #1 Integer caching
1:46 #2 Default mutable arguments
3:44 #3 NotImplemented VS NotImplementedError
7:24 #4 Immutable objects
9:08 #5 Booleans are weird integers
11:07 #6 Reference inconsistency
13:02 #7 Variable scope weirdness
14:30 #8 For-else clause
16:03 #9 Delayed printing
17:03 #10 JavaScript in Python?
19:08 #11 Space invader operator?!
20:08 #12 Functions have attributes?
21:05 #13 Class or instance attributes?
25:33 BOUNS
#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!