This code:
class testclass: def __init__(self,x,y): self.x = x self.y = y self.test() def test(): print(\'test\') i
Pass self to your test method:
self
test
def test(self): print('test')
You need to do this because Python explicitly passes a parameter referring to the instantiated object as the first parameter. It shouldn't be omitted, even if there are no arguments to the method (because of the error specified).