def set_property (): set_property.value = 10 set_property() print(set_property.value) # 10 # Must be instantiated