8 things in Python you didn't realize are descriptors
Descriptors are everywhere in Python, but you may not have realized it. They underlie functions, properties, staticmethods, and more! In this video we take a look at 8 Python descriptors and explain the descriptor protocol. ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosS... descriptor docs: https://docs.python.org/3/howto/descr... staticmethods vid: • Python staticmethod and classmethod super vid: • super/MRO, Python's most misunderstood fea... slots vid: • Python __slots__ and object layout explained SUPPORT ME ⭐ --------------------------------------------------- Patreon: / mcoding Paypal: https://www.paypal.com/donate/?hosted... Other donations: https://mcoding.io/donate Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, John Martin, Mutual Information BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: / discord Github: https://github.com/mCodingLLC/ Reddit: / mcoding Facebook: / james.mcoding CHAPTERS --------------------------------------------------- 0:00 Intro 0:17 What are descriptors? 2:08 #1 functions 3:10 #2 properties 5:27 #3 classmethods and staticmethods 6:47 #4 slots 7:42 #5 _dict_ 8:30 #6 SQLAlchemy models 9:06 #7 validators 10:16 #8 super lookups 10:46 Interactions with _getattr_ 14:02 Thanks

"Simple Made Easy" - Rich Hickey (2011)

Why Python Loops Are Slow (And Why NumPy Is Fast)

Are descriptors the most MISUNDERSTOOD part of Python?

Python Generators

Python's most DISLIKED __dunder__ (and what to use instead)

Functions within functions, closures, and variable scopes in Python

Python MAGIC METHODS are easy! 🌟

Python Descriptors: Creating a Class and a Descriptor

You Can Do Really Cool Things With Functions In Python

The Descriptor Protocol inside-out (Name-Mangling, @staticmethod, @classmethod and instance methods)

__new__ vs __init__ in Python

AsyncIO, await, and async - Concurrency in Python

This is probably the biggest misconception about Python

Every Python dev falls for this (name mangling)

Understanding Python: Descriptors

super/MRO, Python's most misunderstood feature.

Python dataclasses will save you HOURS, also featuring attrs

python descriptors! (advanced) anthony explains #519

10 Python Errors Explained In 15 Minutes

