Last active
February 4, 2019 14:37
-
-
Save gargolito/372a39efa859befc2b80a4ca85070e4c to your computer and use it in GitHub Desktop.
#python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Track(object): | |
def __init__(self): | |
self.__var = None | |
@property | |
def var(self): | |
return self.__var | |
@pid.setter | |
def var(self, value): | |
if self.__var != value: | |
self.__var = value | |
print('\nnew:', value) | |
s = Track() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment