Advertisement
Guest User

Untitled

a guest
Mar 25th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class a:
  2. call = lambda x,y: x + y
  3. def hey(self):
  4. a().call(2,4)
  5. a().hey()
  6.  
  7. Traceback (most recent call last):
  8. File "hs.py", line 10, in <module>
  9. a().hey()
  10. File "hs.py", line 9, in hey
  11. a().call(2,4)
  12. TypeError: <lambda>() takes exactly 2 arguments (3 given)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement