Michael H. Goldwasser wrote:
>    from numpy import *
>    import numpy

There is a third option which provides the safety/control of import 
numpy with a little less typing:
   import numpy as np
   values = np.array([1.0, 2.0, 3.0])

and you can also import just the names you need:

   from numpy import array
   values = array(...)

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to