Guest User

Untitled

a guest
Nov 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. 1 class parser:
  2. 2 def foo1(a):
  3. 3 return a
  4. 4
  5. 5 def foo2(a):
  6. 6 return foo1(a)
  7.  
  8. class Parser:
  9. @staticmethod
  10. def foo1(a):
  11. return a
  12.  
  13. @staticmethod
  14. def foo2(a):
  15. return Parser.foo1(a)
  16.  
  17. class Parser:
  18.  
  19. def __init__(self):
  20. pass
  21.  
  22. def foo1(self, a):
  23. return a
  24.  
  25. def foo2(self, a):
  26. return self.foo1(a)
  27.  
  28. parser = Parser()
  29. print(parser.foo2('test'))
Add Comment
Please, Sign In to add comment