<div dir="ltr">Hi,<div><br></div><div>I have just submitted a longish issue on the github repo, <a href="https://github.com/numpy/numpy/issues/5721" target="_blank">#5721</a>. After going in quite some detail over the flags attribute of ndarray's I have found several inconsistencies with the C API, and would like to make some changes. The details are in gh, but as a high level summary:</div><div><ol><li><font face="monospace, monospace">arr.flags.farray</font> is almost certainly broken, and returns some useless result. I would like to make it behave like the C API's <font face="monospace, monospace">PyArray_ISFARRAY</font>, even though that doesn't seem to be the intention of the original coder.</li><li><font face="monospace, monospace">arr.flags.fortran</font> is inconsitent with the C API's <span style="font-family:monospace,monospace">PyArray_ISFORTRAN.</span><font face="arial, helvetica, sans-serif"> I think it should be modified to match it, but understand this may be too much of a backwards compatibility breach.</font></li><li><font face="arial, helvetica, sans-serif">I would like for `arr.flags` to truly behave as a mutable property of `arr`. An explanation can be found on another thread's discussion with Benjamin Root earlier today.</font></li><li><font face="arial, helvetica, sans-serif">I would like to match the Python and C version's of these as much as possible, and avoid future deviation, by actually using the C versions in the Python ones, even if this may introduce subtle behavior changes.</font></li></ol><div><font face="arial, helvetica, sans-serif">Feedback is very welcome.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Jaime</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div>-- <br><div>(\__/)<br>( O.o)<br>( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes de dominación mundial.</div>
</div></div>