import random module

Michael Tobis mtobis at
Wed Mar 22 18:00:48 CET 2006

1) remove the file random.pyc in your working directory

2) rename the file to something else and run it.

The import mechanism is looking for random.pyc or, but you
have already named your file that! Your current directory is above your
library directory in python's search path, so it finds that before it
finds the library module.


More information about the Python-list mailing list