You need to do this, indeed, a property ...: for example, in __init__
self._some_field = []
and then in class:
@property
def some_field(self):
return self._some_field
Note that this means that it does not make the list itself immutable: what happens with an error is an assignment, for example,
self.some_field = 'bah'
not a mutator call for example
self.some_field.append('blah')
, ( ) - - (), .