time() returns strange message...

Tim Daneliuk tundra at tundraware.com
Wed Dec 12 16:30:03 EST 2001


Johan Barelds wrote:
> 
> Hi all,
> 
> I am trying to use the time() function which strange results.
> My code is the following:
> ==========================================
> import time
> print time()
> ==========================================
> 
> the result is:
> ==========================================
> Traceback (most recent call last):
>   File "./fundsalert.py", line 74, in ?
>     print time()
> TypeError: object of type 'module' is not callable
> ==========================================
> 
> anyone any clues??
> 
> Thanks!
> 
> --
> Kind Regards / Met vriendelijke groet,
> 
> Johan Barelds,
> Good-IT! BV
> Strijplaan 320
> 2285 HZ  Rijswijk(ZH)
> Email  j.barelds at good-it.com
> Tel.   +31(0)70-3965230
> Fax.  +31(0)70-3965271
> Mob. +31(0)6-54253750

How about:

time.time()

Recall that the time() function is in the namespace of the time module...
-- 
------------------------------------------------------------------------------
Tim Daneliuk
tundra at tundraware.com



More information about the Python-list mailing list