[Numpy-discussion] another view puzzle

Robert Kern robert.kern@gmail....
Wed Jun 3 18:00:31 CDT 2009


On Wed, Jun 3, 2009 at 17:58,  <josef.pktd@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