Re: [Numpy-discussion] A crazy masked-array thought

2012-04-28 Thread Charles R Harris
On Sat, Apr 28, 2012 at 10:58 AM, Neal Becker wrote: > Nathaniel Smith wrote: > > > On Sat, Apr 28, 2012 at 7:38 AM, Richard Hattersley > > wrote: > >> So, assuming numpy.ndarray became a strict subclass of some new masked > >> array, it looks plausible that adding just a few checks to > numpy.n

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-28 Thread Neal Becker
Nathaniel Smith wrote: > On Sat, Apr 28, 2012 at 7:38 AM, Richard Hattersley > wrote: >> So, assuming numpy.ndarray became a strict subclass of some new masked >> array, it looks plausible that adding just a few checks to numpy.ndarray to >> exclude the masked superclass would prevent much downst

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-28 Thread Nathaniel Smith
On Sat, Apr 28, 2012 at 7:38 AM, Richard Hattersley wrote: > So, assuming numpy.ndarray became a strict subclass of some new masked > array, it looks plausible that adding just a few checks to numpy.ndarray to > exclude the masked superclass would prevent much downstream code from > accidentally o

Re: [Numpy-discussion] datetime dtype possible regression

2012-04-28 Thread Charles R Harris
On Sat, Apr 28, 2012 at 9:13 AM, Wes McKinney wrote: > On Fri, Apr 27, 2012 at 4:57 PM, Robert Kern > wrote: > > On Fri, Apr 27, 2012 at 21:52, Travis Vaught wrote: > >> With NumPy 1.6.1 (from EPD 7.2-2) I get this behavior: > >> > >> > >> ~ > >> > >> In [1]: imp

Re: [Numpy-discussion] datetime dtype possible regression

2012-04-28 Thread Wes McKinney
On Fri, Apr 27, 2012 at 4:57 PM, Robert Kern wrote: > On Fri, Apr 27, 2012 at 21:52, Travis Vaught wrote: >> With NumPy 1.6.1 (from EPD 7.2-2) I get this behavior: >> >> >> ~ >> >> In [1]: import numpy as np >> >> In [2]: schema = np.dtype({'names':['symbol', 'date