class test: def getname(self,name): print 'hej %s' % name g = test() g.getname('arnold')