On 19 Apr., 08:37, Hook <[EMAIL PROTECTED]> wrote:
> 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.
The error message just says that you have called a module which is
time in this case.
Just replace the call to time by time.time() and it shall work.
--
http://mail.python.org/mailman/listinfo/python-list