Re:Python: Common Newbie Mistakes, Part 1
by stormbrew on Saturday July 06, 2013 @07:59PM
(#6000496)
The most frustrating thing that bit me when I was first learning python was the error when you pass the wrong number of arguments to a method:
Once you understand more about how method dispatch works it makes sense, but it's really confusing to be told you were doing something you don't think you are.
[ Parent
| on HN ]
pass to python 3 :D
>>> class C:
... def m(self,a):
... pass
...
>>> C().m()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: m() missing 1 required positional argument: 'a'
>>>