class myclass(): def test(self): print "print this line" if __name__ == '__main__': myclass.run() -- View this message in context: http://python.6.x6.nabble.com/Class-attribute-error-tp5039199.html Sent from the Python - tutor mailing list archive at Nabble.com.