Doh, you're right of course.

We could rename it and leave the old name as a tiny compatibility shim.
IntpFromSequence is a bit of a generic name in any case... it's not really
a generic sequence-to-integer converter, right, but one specifically
appropriate for handling indices and closely related objects like axes? Do
we have a good name for this category of objects, or can we invent one?


On Tue, Apr 16, 2013 at 4:01 PM, seberg <notifications@github.com> wrote:

> In numpy/core/src/multiarray/conversion_utils.c:
>
> > @@ -117,7 +118,7 @@
> >          }
> >      }
> >      seq->len = len;
> > -    nd = PyArray_IntpFromSequence(obj, (npy_intp *)seq->ptr, len);
> > +    nd = PyArray_IntpFromSequence(obj, (npy_intp *)seq->ptr, (int) len);
>
> PyArray_IntpFromSequence is exposed too, otherwise it would be called so
> rarely, that that the change would be simple...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/numpy/numpy/pull/3243/files#r3813480>
> .
>