smtplib problem for newbie

Justin Azoff justin.azoff at gmail.com
Thu Jun 22 09:22:57 EDT 2006


Noah Gift wrote:
[snip]
>     a = long(time.time() * 256) # use fractional seconds
> TypeError: 'module' object is not callable

Part of your program includes a file or directory that you called
'long'.  You should not re-use names of built-ins in your programs..
they cause you to get errors like the above.

see:

>>> long('12')
12L
>>> open("long.py",'w')
<open file 'long.py', mode 'w' at 0x401e3380>
>>> import long
>>> long('12')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'module' object is not callable
>>> 


-- 
- Justin




More information about the Python-list mailing list