Re: [Numpy-discussion] Issue w/ ndarray.view

2008-09-10 Thread Travis E. Oliphant
Pierre GM wrote: > All, > I was fixing MaskedArray.view for masked arrays with flexible type when I ran > into a small pb with view. > The new definition accepts 2 keywords dtype and type. I thought I could > easily > redefined MaskedArray.view as > > def view(self, dtype=None, type=None): >

[Numpy-discussion] Issue w/ ndarray.view

2008-09-10 Thread Pierre GM
All, I was fixing MaskedArray.view for masked arrays with flexible type when I ran into a small pb with view. The new definition accepts 2 keywords dtype and type. I thought I could easily redefined MaskedArray.view as def view(self, dtype=None, type=None): output = ndarray.view(self, dtype=d