Thanks guys!
--
http://mail.python.org/mailman/listinfo/python-list
> Frank <[EMAIL PROTECTED]> writes:
import random
from numpy import *
print random.randrange(10)
> Traceback (most recent call last):
> File "", line 1, in ?
> AttributeError: 'module' object has no attribute 'randrange'
> Here it does not work.
Here's a clue.
=
"Frank" <[EMAIL PROTECTED]> writes:
> >>> import random
> >>> print random.randrange(10)
> 8
> >>>
>
> Everything is fine.
>
> >>> import random
> >>> from numpy import *
> >>>
> >>> print random.randrange(10)
> Traceback (most recent call last):
> File "", line 1, in ?
> AttributeError: 'module'
Frank wrote:
> Hi,
>
> I have the following weird behavior when I load modules:
>
>
import random
print random.randrange(10)
> 8
>
> Everything is fine.
>
import random
from numpy import *
print random.randrange(10)
> Traceback (most recent call last):
> File "",
Hi,
I have the following weird behavior when I load modules:
>>> import random
>>> print random.randrange(10)
8
>>>
Everything is fine.
>>> import random
>>> from numpy import *
>>>
>>> print random.randrange(10)
Traceback (most recent call last):
File "", line 1, in ?
AttributeError: 'module