What is the difference between the following class methods?
Is it that one is static and the other is not?
class Test(object):
def method_one(self)
that is an error.
first of all, first line should be like this (be careful of capitals)
class Test(object):
Whenever you call a method of a class, it gets itself as the first argument (hence the name self) and method_two gives this error
>>> a.method_two()
Traceback (most recent call last):
File "", line 1, in
TypeError: method_two() takes no arguments (1 given)