Skip to content

Instantly share code, notes, and snippets.

@gargolito
Last active February 4, 2019 14:37
Show Gist options
  • Save gargolito/372a39efa859befc2b80a4ca85070e4c to your computer and use it in GitHub Desktop.
Save gargolito/372a39efa859befc2b80a4ca85070e4c to your computer and use it in GitHub Desktop.
#python
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