While It's not apparent how to reinforce a direct member entry like foo.num = num, You can certainly augment your traditional setter with an additional force parameter: precisely what is the right OOP system updating instance variables in python See much more connected questions Relevant Soiled Monitoring: Which I essentially https://smartworldeveloper.in/