Inheritance confusion
Kay Schluehr
kay.schluehr at gmx.net
Sat Apr 19 02:55:16 EDT 2008
On 19 Apr., 08:37, Hook <H... at somewhere.nowhere.co.au.it> 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.
More information about the Python-list
mailing list