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

Published: 07 August 2019
on channel: Live Python
10,674
287

Have you heard Descriptors mentioned a lot but no-one seems to add any detail or tell you anything else other than Property in Python is a type of Descriptor?

In this two-part mini-series, we're going to cover descriptors inside out and give you the knowledge and expertise to go out in the wild and start using them of your own accord.

Part 2 will be out tomorrow and you'll use all the information you have learnt in this tutorial to do some pretty neat things like:

Creating managed attributes
Understanding Django source code
Extending a Property through a subclass
Creating Lazily Computed Attributes
Write our own Python implementation of classmethod and
staticmethod
Write our own Python implementation of dict.fromkeys()
classmethod

Please like and subscribe if you enjoyed this content and other tutorials in this channel.


Watch video The Descriptor Protocol inside-out (Name-Mangling, @staticmethod, @classmethod and instance methods) online without registration, duration hours minute second in high quality. This video was added by user Live Python 07 August 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,674 once and liked it 287 people.