<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 21, 2020 at 3:32 PM Otto Hirr <<a href="mailto:ottohirr@gmail.com">ottohirr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Greetings,<br>
<br>
tl;dr:<br>
Need to remove npy_3kcompat.h from any source code location since<br>
Python2 is no longer supported.<br>
<br>
Background:<br>
Ran into an error after compiling various apps regarding<br>
npy_PyErr_ChainExceptionsCause() being undefined at runtime.<br>
<br>
Poking around shows that this is related to npy_3kcompat.h, which<br>
seems to be for Python2 compatibility.<br>
(There is a differently named counterpart for Python3.)<br>
<br>
This seems to be used in a couple of numpy/core/src/multiarray files.<br>
<br>
Seems that since Python2 is no longer supported, cleaning up cruft of<br>
P2 will improve code and should eliminate the problem I ran into, (or<br>
else move an error report to something else...)<br>
<br>
Is this reasonable to eliminate?<br>
<br></blockquote><div><br></div><div>The migration is already underway, but will take time. Even after NumPy is clean we will keep it because we also need to maintain compatibility across Python 3 versions and to avoid breaking downstream projects who might be using it.</div><div><br></div><div>Chuck</div></div></div>