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
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
module import * is scowled upon. You have to know what
module is dumping into your namespace,
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 seem
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 pylab