Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MegaFunction(type):
- def __call__(cls, *args, **kwargs):
- return super(MegaFunction, cls).__call__(*args, **kwargs)()
- class Elo(object):
- __metaclass__ = MegaFunction
- def __init__(self, arg1):
- self.arg1 = arg1
- def __call__(self):
- return self.arg1
- print Elo, Elo('1')
Advertisement
Add Comment
Please, Sign In to add comment