[Numpy-discussion] alternative mechanism for initializing an array

Robert Kern robert.kern at gmail.com
Thu Jul 16 21:37:45 EDT 2009


On Thu, Jul 16, 2009 at 20:34, Phillip M. Feldman<pfeldman at verizon.net> wrote:
> This does the right thing sometimes, but not always.  Out[2] and Out[4]
> are fine, but Out[3] is not (note the extra set of braces).  Probably
> the only right way to fix this is to modify numpy itself.

Modifying numpy.array() would have exactly the same ambiguity.

-- 
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



More information about the NumPy-Discussion mailing list