diff options
-rw-r--r-- | doc/release/upcoming_changes/14498.change.rst (renamed from doc/release/upcoming_changes/14498.changes.rst) | 0 | ||||
-rw-r--r-- | doc/release/upcoming_changes/14510.compatibility.rst | 8 | ||||
-rw-r--r-- | numpy/distutils/misc_util.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/doc/release/upcoming_changes/14498.changes.rst b/doc/release/upcoming_changes/14498.change.rst index fd784e289..fd784e289 100644 --- a/doc/release/upcoming_changes/14498.changes.rst +++ b/doc/release/upcoming_changes/14498.change.rst diff --git a/doc/release/upcoming_changes/14510.compatibility.rst b/doc/release/upcoming_changes/14510.compatibility.rst index cd686a63b..63d46d2f7 100644 --- a/doc/release/upcoming_changes/14510.compatibility.rst +++ b/doc/release/upcoming_changes/14510.compatibility.rst @@ -1,10 +1,12 @@ -`numpy.lib.recfunctions.drop_fields` can no longer return ``None`` ------------------------------------------------------------------- +`numpy.lib.recfunctions.drop_fields` can no longer return `None` +---------------------------------------------------------------- If ``drop_fields`` is used to drop all fields, previously the array would -be completely discarded and ``None`` returned. Now it returns an array of the +be completely discarded and `None` returned. Now it returns an array of the same shape as the input, but with no fields. The old behavior can be retained with:: dropped_arr = drop_fields(arr, ['a', 'b']) if dropped_arr.dtype.names == (): dropped_arr = None + +converting the empty recarray to `None` diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index 0eaaeb736..7ba8ad862 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -1687,8 +1687,6 @@ class Configuration(object): and will be installed as foo.ini in the 'lib' subpath. - Cross-compilation - ----------------- When cross-compiling with numpy distutils, it might be necessary to use modified npy-pkg-config files. Using the default/generated files will link with the host libraries (i.e. libnpymath.a). For |