Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class a:
- call = lambda x,y: x + y
- def hey(self):
- a().call(2,4)
- a().hey()
- Traceback (most recent call last):
- File "hs.py", line 10, in <module>
- a().hey()
- File "hs.py", line 9, in hey
- a().call(2,4)
- TypeError: <lambda>() takes exactly 2 arguments (3 given)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement