problems loading modules

Ganesan Rajagopal rganesan at myrealbox.com
Mon Feb 5 01:10:45 EST 2007


>>>>> Frank  <supervau at gmail.com> writes:

>>>> import random
>>>> from numpy import *
>>>> 
>>>> print random.randrange(10)
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'randrange'
>>>> 

> Here it does not work.

Here's a clue.

======
>>> import numpy
>>> numpy.random 
<module 'numpy.random' from '/usr/lib/python2.4/site-packages/numpy/random/__init__.pyc'>
=======

Ganesan

-- 
Ganesan Rajagopal




More information about the Python-list mailing list