[Numpy-discussion] another view puzzle

Robert Kern robert.kern at gmail.com
Wed Jun 3 19:00:31 EDT 2009


On Wed, Jun 3, 2009 at 17:58,  <josef.pktd at gmail.com> wrote:
> Do you have an opinion about whether  .view(ndarray_subclass) or
> __array_wrap__ is the more appropriate return wrapper for function
> such as the ones in stats?

__array_wrap__ would be more appropriate. It's what ufuncs use.

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