You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
programming-basics-2022/08_python/descriptor/modifiers.py

17 lines
342 B

class A:
def __init__(self, a, b):
self._a = a
self.__b = b
@property
def super_duper_var(self):
print(self)
return self.__b
@super_duper_var.setter
def super_duper_var(self, value):
self.__b = value
# @super_duper_var.deleter
# def super_duper_var(self):
# pass