"import random" Odd Behavior on OSX install VPython v.3.1

Eric Dick <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
The problem was with the next line of code.  I should have used 'import visual.graph' rather than 'from visual.graph import *'
Can anyone explain what the difference between the two calls is?  Also why does visual.graph have visual.graph.random?

The Problem
_______________________________
import random
from visual.graph import *  #bad idea 

# imports random from numpy directory
# visual.graph. does have a .random 
_______________________________

Solution:

import visual.graph

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1

_______________________________________________
Visualpython-users mailing list
Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/visualpython-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.