8000 API: Remove `seterrobj`/`geterrobj`/`extobj=` and related C-API functions by seberg · Pull Request #23922 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

API: Remove seterrobj/geterrobj/extobj= and related C-API functions #23922

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

Merged
merged 11 commits into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DOC: Add release note for seterrobj and related removals (including…
… C-API)
  • Loading branch information
seberg committed Jun 13, 2023
commit 7cba4d8a80e7c6a20b8c04fad194ec4a06d1c522
5 changes: 5 additions & 0 deletions doc/release/upcoming_changes/23922.c_api_removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* ``PyUFunc_GetPyVals``, ``PyUFunc_handlefperr``, and ``PyUFunc_checkfperr``
have been removed.
If needed, a new backwards compatible function to raise floating point errors
could be restored. (There are no known users and the functions would have made
``with np.errstate()`` fixes much more difficult.)
3 changes: 3 additions & 0 deletions doc/release/upcoming_changes/23922.python_removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* ``np.geterrobj``, ``np.seterrobj`` and the related ufunc keyword argument
``extobj=`` have been removed. The preferred replacement for all of these
is using the context manager ``with np.errstate():``.
0