Pastebin

Paste #2221: No description

< previous paste - next paste>

Pasted by chrivers

Download View as text


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


Do not write anything in this field if you're a human.

Go to most recent paste.