diff options
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r-- | doc/source/reference/c-api/ufunc.rst | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/source/reference/c-api/ufunc.rst b/doc/source/reference/c-api/ufunc.rst index 95dc47839..c43743391 100644 --- a/doc/source/reference/c-api/ufunc.rst +++ b/doc/source/reference/c-api/ufunc.rst @@ -107,7 +107,10 @@ Types Arbitrary data (extra arguments, function names, *etc.* ) that can be stored with the ufunc and will be passed in - when it is called. + when it is called. May be ``NULL``. + + .. versionchanged:: 1.23.0 + Accepts ``NULL`` `data` in addition to array of ``NULL`` values. This is an example of a func specialized for addition of doubles returning doubles. @@ -158,9 +161,10 @@ Functions :c:type:`PyUFuncGenericFunction` items. :param data: - Should be ``NULL`` or a pointer to an array of size *ntypes* - . This array may contain arbitrary extra-data to be passed to - the corresponding loop function in the func array. + Should be ``NULL`` or a pointer to an array of size *ntypes*. + This array may contain arbitrary extra-data to be passed to + the corresponding loop function in the func array, including + ``NULL``. :param types: Length ``(nin + nout) * ntypes`` array of ``char`` encoding the |