bruce wrote: > robert.... > > i did an > python>>> import numpy > a = array([['q','a'],['w','e']]) not tested, but you usually need to mention where to find array: a = numpy.array([['q','a'],['w','e']]) > > and it didn't work... > > i used > >>from import numpy * > > and it seems to accept the 'array' word.. .looks like it will work... from numpy import * makes numpy.array available as array in your code.
I would be kind of you to post what you have exactly done as the phrase "from import ..." can't be it. Claudio Grondi > > what's the difference between 'import numpy', and "from import numpy *" > > comments... > > thanks > > -bruce > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf > Of Robert Kern > Sent: Tuesday, July 04, 2006 9:42 PM > To: python-list@python.org > Subject: Re: numarray > > > bruce wrote: > >>hi... >> >>i'm trying to find numarray.. i found the numpy on sourceforge and >>downloaded/installed.. >> >>i did a >>python>> import numarray >> >>and got an error... > > > Never just say "I got an error." It tells us nothing. Copy-and-paste the > exact > error message. I presume, however, that you installed numpy, not numarray. > They > are not the same thing. > > >>the docs that i've seen point to the sourceforge area.. but i only see >>numpy.. which appears to incorporate numarray.. > > > No, it replaces numarray. > > http://www.scipy.org/NumPy > > >>my goal is to somehow define multi-dimensional arrays of strengs... > > > >>> from numpy import * > >>> a = array([['some', 'strings'],['in an', 'array']], dtype=object) > >>> a > array([[some, strings], > [in an, array]], dtype=object) > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless enigma > that is made terrible by our own mad attempt to interpret it as though it > had > an underlying truth." > -- Umberto Eco > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list