TypeError
Martijn
martijn_500 at hotmail.com
Mon Aug 27 17:21:59 EDT 2001
Hi,
I`ve got this error every time I want to use my classes and I can`t
figure out what`s wrong. My code is ok and I`ve used some examples from
a book to check it but I get the same error message.This is what happends:
>>> import MyClassFile
>>> m = MyClassFunction()
Traceback (innermost last)
File "<stdin>"
TypeError: Call of nonfunction (type module)
I also tried:
>>> import MyClassFile
>>> m = MyClassFile.MyClassFunction()
And finaly :
>>> from MyClassfile import *
>>> m = MyClassFunction()
Both give me the same errors. What am i doing wrong ?!? I am using Linux
btw.
Thanx in advance,
Martijn
More information about the Python-list
mailing list