[Numpy-discussion] Where is the code for PyArray_UpdateFlags?

Charles R Harris charlesr.harris at gmail.com
Tue Sep 18 21:43:42 EDT 2012


On Tue, Sep 18, 2012 at 7:32 PM, Frédéric Bastien <nouiz at nouiz.org> wrote:

> Hi,
>
> I would like to reuse the code of this function: PyArray_UpdateFlags
>
> I don't find its definition in the numpy source code. In the build
> directory, it get defined in the file
> build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h
> like this:
>
> #define PyArray_UpdateFlags \
>         (*(void (*)(PyArrayObject *, int)) \
>          PyArray_API[92])
>
> This file is generated by this file
> numpy/core/code_generators/generate_numpy_api.py, that use the
> numpy_api_order.txt file. But I'm not able up to now to find the code
> itself. Do someone know where I can get it?
>
>
gvim numpy/core/src/multiarray/flagsobject.c +63

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120918/7f3f7f76/attachment.html>


More information about the NumPy-Discussion mailing list