Are descriptors the most MISUNDERSTOOD part of Python?

Описание к видео Are descriptors the most MISUNDERSTOOD part of Python?

Descriptors, in many conversations I've had with people, are typically considered one of the most difficult parts of Python. I would posit however that they're moreso misunderstood rather than difficult -- once you get your head around them, there's not much to remember! They're also an incredibly powerful and important concept, as huge swathes of the Python standard library is written using them, from properties to methods!

00:00 - Intro
00:43 - What are descriptors?
01:22 - Creating a lazily-evaluated config system [1a]
07:42 - Creating validators [1b]
14:16 - Looking at strongly-typed generic validators [2-3]
15:39 - Outro

[1a] https://docs.python.org/3/howto/descr...
[1b] https://docs.python.org/3/howto/descr...
[2] https://docs.python.org/3/library/typ...
[3] https://docs.python.org/3/library/abc...



If you want to see more of me, join my Discord server!
  / discord  

I get a lot of people asking, so here's my setup!
• Visual Studio Code:    • My Visual Studio Code setup! (2024)  
• Terminal:    • Make your terminal look AMAZING  
• Desk/recording gear: https://kit.co/Carberra
• PC build: https://uk.pcpartpicker.com/list/TmzGYN

Affiliations (I may earn a commission):
• Codecrafters -- 40% off any plan: https://app.codecrafters.io/join?via=...
• Keeper Password Manager -- 30% off your first year: https://keeper.io/r/EX4FB1C



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto

Комментарии

Информация по комментариям в разработке