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 ()
Source code:
descriptor docs:
staticmethods vid:
super vid:
slots vid:
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
Feeling generous but don’t have a Patreon? Donate via PayPal! (No sign up needed.)
Want to donate crypto? Check out the rest of my supported donations on my website!
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:
Github:
Reddit:
Facebook:
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
8 views
12
2
1 month ago 00:00:12 2
Do Something, Cat
2 months ago 00:47:45 1
Stain The Canvas - All Fine / eniF llA ( Full Album Stream)
2 months ago 00:12:39 1
DIY Cardboard FM Synth (8 DX7s!) | MiniDexed & Raspberry Pi
2 months ago 00:03:20 1
MC5 - Kick Out The Jams - Live Tartar Field, 1970 - with M*thf*ker restored ( colorised) .
2 months ago 00:02:34 1
Dope - Everything Sucks
2 months ago 00:26:23 1
Muslim LEARNS The DIFFERENCES Between HEAVEN in Islam & Christianity | Sam Shamoun