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
4
0
5 months ago 00:02:09 2
ROLL OUT THE FALLOUT! (Animated Music Video) ■ The Chalkeaters ft. Black Gryph0n & Benny Benack III
5 months ago 01:27:22 1
Ансамбль “Дети Ветра“ (джаз-мануш). Концерт в горах ()
5 months ago 00:55:06 1
Gold & US Dollar | Money & Monetary System | Bretton Woods | World Currency System | Documentary
5 months ago 00:25:00 1
THUNDERDOME 7 (VII) THE MEGAMIXES [FULL 25:00 MIN] 1994 HD HQ HIGH QUALITY
5 months ago 00:29:54 1
Unboxing my $1,000 ELECTRIC boat from China
5 months ago 00:16:31 1
I added a solar panel to charge my $2,000 electric truck
5 months ago 00:04:58 1
Peppa Pig - Thunderstorm (full episode)
5 months ago 00:00:42 5
Babymetal - Crowd Rowing - Live at Good Things Festival Sydney Australia - 8/12/2018
5 months ago 01:17:59 1
Foxhole Logistics Guide (2024)
5 months ago 00:13:46 1
44 Cheat Codes That I Know at 44 That I Wish I Knew at 24
5 months ago 00:13:51 1
Visiting the Closest Town to Space (Life with 50% less oxygen)
5 months ago 00:25:45 1
8 AMAZING JUTE IDEAS 2024 !!Easy Home decoration Ideas ❤️DIY
5 months ago 00:20:10 1
Recycling Failed 3D Prints with a DIY Filament Extruder: Artme3D
5 months ago 00:23:10 1
HELLUVA BOSS - THE FULL MOON // S2: Episode 8
5 months ago 04:51:58 1
Solarstone pres. Pure Trance Radio Episode 402
5 months ago 00:05:35 1
Tha Dogg Pound, Snoop Dogg - Who Da Hardest? ft. RBX, The Lady of Rage
5 months ago 02:03:51 1
Slow Morning House Music Mix - Chill Funky Breakfast Playlist | Deep Relaxing Brunch Terrace DJ Set
5 months ago 00:16:52 1
Pushing the Pace | Speedskater and Street Skater mic’ed up in New York City (rollerblading)
5 months ago 03:15:54 1
Tucker Carlson - Revolution, World War 3, WTC Building 7 and Supernatural Phenomenon | SRS #115
5 months ago 00:03:01 1
Pseudocorynactis - The Orange Ball Anemone that Wasn’t
5 months ago 00:12:19 1
SpaceX Starship Launch 4: Everything That Happened in 12 Minutes
5 months ago 00:04:14 1
Twenty One Pilots - Navigating (Official Video)
5 months ago 00:31:57 1
Английский с Metallica – Master of Puppets | Разбор лексики и грамматики