@property
def spam(self):
    """I'm the 'spam' property."""
return self._spam

@spam.setter
def spam(self, value):
    if not value.endswith('!'):
        raise ValueError('spam must end with !')
self._spam = value

@spam.deleter
def spam(self):
    del self._spam
Инициализация объектных переменных - подход Java, подход Python?