On Wed, 2007-09-12 at 15:13 -0700, Andrew F wrote:
> >>> import random
> Unexpected error: <type 'exceptions.TypeError'>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "random.py", line 10, in <module>
>     x = random.random()
> TypeError: 'module' object is not callable

You have a file called random.py in your current directory. It's
shadowing the random module from the library.

HTH,

-- 
Carsten Haese
http://informixdb.sourceforge.net


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to