Access Property Getters/Setters Python

Is there any way to access/define the getters and setters of the properties of classes you add in Python? Like if I add the “visa_address” property, would there be any way to define the getter and setter? Python has Properties, that work different from Python attributes, where you can define getters and setters, but would that get incorporated into the OpenTAP plugin?

1 Like

@john.berlien are you referring to using the @property and @property.setter?

It is possible to use these, but they would be more like private properties, and not reflected to OpenTAP.

That’s basically what I was referring to, and yeah that’s what I was afraid of. Not ideal, but there are ways around it.

1 Like