socek

Untitled

May 20th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. class JestemMetoda(object):
  2.  
  3.     def __init__(self, elo):
  4.         self.elo = elo
  5.  
  6.     def get_result(self):
  7.         return {'elo', self.elo}
  8.  
  9.     def __new__(cls, *args, **kwargs):
  10.         obj = super().__new__(cls)
  11.         obj.__init__(*args, **kwargs)
  12.         return obj.get_result()
  13.  
  14. print(JestemMetoda(10))
Advertisement
Add Comment
Please, Sign In to add comment