TypeError: 'module object is not callable'

christophertidy at hotmail.com christophertidy at hotmail.com
Mon Sep 3 06:50:26 EDT 2007


Thank you for your help that seems to have done the trick.
You are correct Diez B. Roggisch that I come from a java background!

I have a new tiny problem I can't understand either.
Withing Step.py I have the following method

def isCompleted(self):
    "Check whether data step has been processed"
    return self.isCompleted

Then within main.py I simply wish to print the value of isCompleted
which I try to do by the following
print 'Magn completed status is',a.isCompleted()

Which returns the following error:
    a.isCompleted()
TypeError: 'int' object is not callable

I have tried ideas such as int(a.isCompleted) but to no prevail. Any
ideas?

Regards
Chris




More information about the Python-list mailing list