From adfd2e9c7d54ceaa118d4ca025c30d4407b4e5b8 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Wed, 30 Jun 2021 15:34:54 -0500 Subject: MAINT: Refactor UFunc core to use NEP 43 style dispatching/promotion The first (big) chunk of a multi-step process to update all ufuncs to NEP 43 style ufuncs. This limits itself to normal ufunc calls and sets ufunc.at and all reduce-like operations to the side. These would add another level of complexity. --- doc/source/reference/c-api/types-and-structures.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/source/reference/c-api') diff --git a/doc/source/reference/c-api/types-and-structures.rst b/doc/source/reference/c-api/types-and-structures.rst index 75a97c20e..43d1eccb7 100644 --- a/doc/source/reference/c-api/types-and-structures.rst +++ b/doc/source/reference/c-api/types-and-structures.rst @@ -818,6 +818,7 @@ PyUFunc_Type and PyUFuncObject npy_intp *core_dim_sizes; npy_uint32 *core_dim_flags; PyObject *identity_value; + /* Further private slots (size depends on the NumPy version) */ } PyUFuncObject; .. c:macro: PyObject_HEAD @@ -957,6 +958,12 @@ PyUFunc_Type and PyUFuncObject .. c:member:: PyUFunc_LegacyInnerLoopSelectionFunc *legacy_inner_loop_selector + .. note:: + + Some fallback support for this slot exists, but it should not be + called and not be used in the future. + See ref:`NEP 41 ` and ref:`NEP 43 ` + A function which returns an inner loop. The ``legacy`` in the name arises because for NumPy 1.6 a better variant had been planned. This variant has not yet come about. -- cgit v1.2.1 From d64ea533e075e4774f2b81dba39accfe85b09b6b Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Thu, 22 Jul 2021 11:38:13 -0500 Subject: DOC: use deprecated rather than note and delete old docstring --- doc/source/reference/c-api/types-and-structures.rst | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'doc/source/reference/c-api') diff --git a/doc/source/reference/c-api/types-and-structures.rst b/doc/source/reference/c-api/types-and-structures.rst index 43d1eccb7..3af2c7c41 100644 --- a/doc/source/reference/c-api/types-and-structures.rst +++ b/doc/source/reference/c-api/types-and-structures.rst @@ -958,16 +958,12 @@ PyUFunc_Type and PyUFuncObject .. c:member:: PyUFunc_LegacyInnerLoopSelectionFunc *legacy_inner_loop_selector - .. note:: + .. deprecated:: Some fallback support for this slot exists, but it should not be - called and not be used in the future. + called and will not be used in the future. See ref:`NEP 41 ` and ref:`NEP 43 ` - A function which returns an inner loop. The ``legacy`` in the name arises - because for NumPy 1.6 a better variant had been planned. This variant - has not yet come about. - .. c:member:: void *reserved2 For a possible future loop selector with a different signature. -- cgit v1.2.1 From 971185ebf980d12e0c4a85622a4482783b83fa40 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Thu, 22 Jul 2021 13:59:58 -0700 Subject: MAINT: Use the same pattern for the floating point error check Co-authored-by: Matti Picus --- doc/source/reference/c-api/types-and-structures.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/source/reference/c-api') diff --git a/doc/source/reference/c-api/types-and-structures.rst b/doc/source/reference/c-api/types-and-structures.rst index 3af2c7c41..54a1e09e1 100644 --- a/doc/source/reference/c-api/types-and-structures.rst +++ b/doc/source/reference/c-api/types-and-structures.rst @@ -958,10 +958,11 @@ PyUFunc_Type and PyUFuncObject .. c:member:: PyUFunc_LegacyInnerLoopSelectionFunc *legacy_inner_loop_selector - .. deprecated:: + .. deprecated:: 1.22 - Some fallback support for this slot exists, but it should not be - called and will not be used in the future. + Some fallback support for this slot exists, but will be removed + eventually. A univiersal function which relied on this will have + eventually have to be ported. See ref:`NEP 41 ` and ref:`NEP 43 ` .. c:member:: void *reserved2 -- cgit v1.2.1