Re: [Tutor] From Numpy Import *

2007-11-09 Thread Evert Rol
> Thank-you! It is important for us to avoid potential code > conflicts and so we'll standardize on the import > syntax. > > On a related note: > We are using both NumPy and SciPy. Consider the example y = Ax > where A is a sparse matrix. If A is qualified as a scipy object > then do y

Re: [Tutor] From Numpy Import *

2007-11-08 Thread Dinesh B Vadhia
e to be scipy objects or can they be numpy objects? Dinesh - Original Message - From: Michael H. Goldwasser To: Dinesh B Vadhia Cc: tutor@python.org Sent: Wednesday, November 07, 2007 5:37 PM Subject: [Tutor] From Numpy Import * On Wednesday November 7, 2007, Dinesh B Vadhia

Re: [Tutor] From Numpy Import *

2007-11-07 Thread Kent Johnson
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

[Tutor] From Numpy Import *

2007-11-07 Thread Michael H. Goldwasser
On Wednesday November 7, 2007, Dinesh B Vadhia wrote: >Hello! The standard Python practice for importing modules is, for example: > >import sys >import os >etc. > >In NumPy (and SciPy) the 'book' suggests using: > >from numpy import * >from scipy import *

[Tutor] From Numpy Import *

2007-11-07 Thread Dinesh B Vadhia
Hello! The standard Python practice for importing modules is, for example: import sys import os etc. In NumPy (and SciPy) the 'book' suggests using: from numpy import * from scipy import * However, when I instead use 'import numpy' it causes all sorts of errors in my existing code. What do y