i want to do
class foo(): # this class doesn't return and create object (object) , only runs main function when is called @classmethod def main(cls): print "main function is called with using foo()" foo() # output # # main function is called with using foo()is there a way to do this ?
Moderator snippsat: Fixed code tag look at BBcode help