Skip to content

Instantly share code, notes, and snippets.

@sivy
Last active August 29, 2015 14:06
Show Gist options
  • Save sivy/2ed52b8e0a79d0698764 to your computer and use it in GitHub Desktop.
Save sivy/2ed52b8e0a79d0698764 to your computer and use it in GitHub Desktop.
class Thing(object):
__run = True
run = True
def check_run(self):
print "run: %s" % self.run
print "__run: %s" % self.__run
thing = Thing()
thing.check_run()
thing.run = False
thing.__run = False
thing.check_run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment