TypeError: method() takes 1 positional argument but 2 were given
In Python, this: …is syntactic sugar, which the interpreter translates behind the scenes into: …which, as you can see, does indeed have two arguments – it’s just that the first one is implicit, from the point of view of the caller. This is because most methods do some work with the object they’re called on, so … Read more