property decorator - deep dive | Python OOP | Part 6

Опубликовано: 16 Январь 2022
на канале: Sreekanth
6,794
224

We will be discussing about Python's properties class, it's purpose and usage as decorator.
This is the 6th video of tutorial series on Object oriented programming in Python:    • Python OOP | Intermediate level  

0:00 Introduction
0:56 Advantages of having getters and setters
2:18 Using property object
4:18 Attribute lookup order with property objects
4:56 property class signature
5:23 deleter and docstring
6:17 getter, setter and deleter methods
8:36 property decorator
10:05 Read-only attribute
11:13 An example of lazy computation

Credits: The contents of this video are mostly from my notes on Dr. Fred Baptiste's course https://www.udemy.com/course/python-3...


Смотрите видео property decorator - deep dive | Python OOP | Part 6 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Sreekanth 16 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,794 раз и оно понравилось 224 людям.