Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Something(object):
- @staticmethod
- def foo(x):
- return x + 5
- @staticmethod
- def bar(x, y):
- return y + 5 * x
- # something.py
- def foo(x):
- return x + 5
- def bar(x, y):
- return y + 5 * x
- import something
- print something.foo(10)
- print something.bar(12, 14)
- class Something(object):
- def foo(self, x):
- return x + 5
- def bar(self, x, y):
- return y + 5 * self.foo(x)
- something = Something()
Add Comment
Please, Sign In to add comment