Pastebin
Paste #2221: No description
< previous paste - next paste>
Pasted by chrivers
class Simple(object):
def __init__(self, val):
self.val = val
def do_stuff(self):
print self.val
s = Simple(42)
s.do_stuff()
q = s.do_stuff
q()
# OUTPUT from python:
# 42
# 42
New Paste
Go to most recent paste.