[Numpy-discussion] Datetime branch

Charles R Harris charlesr.harris@gmail....
Thu Jun 11 13:06:41 CDT 2009


On Thu, Jun 11, 2009 at 11:47 AM, Robert Kern <robert.kern@gmail.com> wrote:

> On Thu, Jun 11, 2009 at 12:39, Charles R
> Harris<charlesr.harris@gmail.com> wrote:
> >
> >
> > On Thu, Jun 11, 2009 at 11:34 AM, Robert Kern <robert.kern@gmail.com>
> wrote:
> >>
> >> On Thu, Jun 11, 2009 at 12:29, Charles R
> >> Harris<charlesr.harris@gmail.com> wrote:
> >> > Oh, and slipping the new types in between 64 bit integers and floats
> is
> >> > a
> >> > bit iffy.
> >>
> >> Where, specifically? There are several linear orders of types in
> >> numpy. I tried to be careful to do the right thing in each. The enum
> >> numbers are after NPY_VOID, of course, for compatibility.
> >
> > I noticed. I'm not saying it's wrong, just that a linear order lacks
> > descriptive power and is difficult to maintain. I expect you ran into
> that
> > problem when trying to make everything work as you wanted.
>
> Yes. Now, which place am I slipping in the new types between 64-bit
> integers and floats?
>

In the ufunc generator. But most of the macros use the type ordering and how
do you control the promotion (or lack thereof) of the various types to/from
the datetime types?

There also seems to be some mechanism for raising errors that has been
added, maybe to loops. I'm not clear on that, did you add some such
mechanism?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090611/faa8508a/attachment.html 


More information about the Numpy-discussion mailing list