Python's __setatrr__

Is there any way to run a function each time that a struct field is set?

No. You need to provide a setter to do that.

1 Like