Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Funk(object):
- def __init__(self):
- pass
- @Funky.funky
- def playMe(self, x, y, z):
- print "{x} {y} {z}".format(x=x, y=y, z=z)
- print "this" " works!"
- class Funky(object):
- def __init__(self):
- pass
- @staticmethod
- def funky(func):
- def fun(self, x, y, z):
- x = x ** 2
- y = y ** 2
- z = z ** 2
- return func(x, y, z)
- return fun;
- if __name__ == "__main__":
- Funk().playMe(1, 2, 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement