Skip to content

Instantly share code, notes, and snippets.

@language-engineering
Created September 14, 2012 10:04
Show Gist options
  • Save language-engineering/3721138 to your computer and use it in GitHub Desktop.
Save language-engineering/3721138 to your computer and use it in GitHub Desktop.
foo
class Tester(object):
def __init__(self):
self.n = 5
def inc(self,x):
self.n+=x
def do_math(self):
print self.n * 3 + 5
test = Tester()
test.inc(2)
test.do_math()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment