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.
Смотрите видео The Descriptor Protocol inside-out (Name-Mangling, @staticmethod, @classmethod and instance methods) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Live Python 07 Август 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 10,674 раз и оно понравилось 287 людям.