On Feb 22, 5:21 pm, [EMAIL PROTECTED] wrote:
> I imported two modules (random and matplotlib), and found that the
> functions available to me from the random module depended on the order
> in which the imports occured. In particular, if I import random first,
[...]
>
> >>> import random
> >>> from
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I imported two modules (random and matplotlib), and found that the
> functions available to me from the random module depended on the order
> in which the imports occured. In particular, if I import random first,
> none of its functions
import random
from pylab import *
x = random.uniform(0,1)
>
> Traceback (most recent call last):
I suspect that
>>> 'random' in dir(pylab)
returns True...this would be one of those reasons that "from
import *" is scowled upon. You have to know what
is dumping into your names
I imported two modules (random and matplotlib), and found that the
functions available to me from the random module depended on the order
in which the imports occured. In particular, if I import random first,
none of its functions seem to be available, while if I import it after
matplotlib, I seem