-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: restore api for file npy_PyFile_Dup and npy_PyFile_DupClose #4450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
possibly also add a runtime deprecation warning? |
I don't think we want to revert this for 1.9 as it fixes a bug. Current matplotlib is fixed, and previously compiled matplotlib should be OK as it should not reference those files. If someone has problems compiling older matplotlib they should probably be asked to upgrade. |
NVM, I see what you did. |
Although it might be better to have a compile failue ;) |
I don't think its worth the trouble for users, the function is probably not often used on seeked file descriptors like our np.fromfile usecase. Most likely other users like matplotlib never see the fixed bug. |
I thought they removed the dependency completely. At least it looked that way to me. But your argument is probably correct, I haven't seen any indication that anyone else besides matplotlib, numpy and (scipy?) used that function. |
Hmm, but we should probably make a mention in the release notes, both 1.8.1 and 1.9.0. |
its fixed in matplotlib but they haven't released a version with the fix yet. |
updated, for Dup one can reuse the other function and just ignore orig_value |
breaking the api breaks matplotlib build and pip installation. Introduce npy_PyFile_Dup2 and npy_PyFile_DupClose2 as replacements
LGTM, thanks. |
BUG: restore api for file npy_PyFile_Dup and npy_PyFile_DupClose
breaking the api breaks matplotlib build and pip installation.
Introduce npy_PyFile_Dup2 and npy_PyFile_DupClose2 as replacements