I have a python property like this declared inside Foo:
class Foo: @property def maxInputs(self): return self._persistentMaxInputs.value @maxInputs.setter def maxInputs(self, value): self._persistentMaxInputs.value = value I use that property to always call "_persistentMaxInputs.value" object when calling "self.maxInputs" from within my class FooCurrently, the value of maxInputs can be get and set by everyone. Now i
However, I want to allow owners of Foos' instanceseveryone to get "maxInputs" but not to set "maxInputs". I know i could just remove the settervalue of the maxInputs, but in that case i also couldn't useit should only be set inside of the setter from within FooFoo class.
So is there a way to declare a private property setter with a private setter and a public getter?