class My_Class:
def __init__(self):
self._x = 0
@property
def x(self):
return self._x
@x.setter
def x(self, x):
self._x = x
If I delete the following getter from the code above:
@property
def x(self):
return self._x
The code stops working. How can I create a setter without a getter?