Hook wrote: > When I run the script I get this: > > Traceback (most recent call last): > File "./3.py", line 20, in <module> > Obj.Connect ('Database') > File "/mnt/isis/Projects/Python/Learning/DB_m.py", line 102, in Connect > self.TRACE ("DB::Connect (" + database + "," + mode) > File "/mnt/isis/Projects/Python/Learning/Hook_m.py", line 314, in TRACE > self.DailyLog (msg) > File "/mnt/isis/Projects/Python/Learning/Hook_m.py", line 98, in > DailyLog > dt = self.Date (time ()) > TypeError: 'module' object is not callable > > > Googling the "TypeError" message suggests that I've got a module and > class with the same name, but I can't see that I have. > > Can someone point me in the right direction please?
Read the traceback ;) Here's a hint: >>> import time >>> time() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'module' object is not callable >>> time.time() 1208588011.7017989 Peter -- http://mail.python.org/mailman/listinfo/python-list