if DISPATCH_TABLE.has_key( sys.argv[1] ) : callFunction(sys.argv[1],sys.argv[2:])
sys.exit( 1 ) ###
when i am running this command >>> python class_fn_Call1.py writeFile I am getting the following error
Traceback (most recent call last): File "class_fn_Call1.py", line 39, in ? callFunction(sys.argv[1],sys.argv[2:]) File "class_fn_Call1.py", line 33, in callFunction x.writeFile() TypeError: writeFile() takes no arguments (1 given)
Same program i am able to run without using class functions. i.e if i write writeFile and writeSpFile functions as normal functions program will run properly. But when i am making it as class functions then it is giving errors. So can anybody help me to reslove this problem? Is this a proper way to call a class function? Please help me.