From 976476081b78279154950d2392aff8ee9290b60f Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Mon, 22 Aug 2011 11:45:45 -0700 Subject: DOC: Add info to the release notes about the full boolean indexing change --- doc/release/2.0.0-notes.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/release') diff --git a/doc/release/2.0.0-notes.rst b/doc/release/2.0.0-notes.rst index 5cabf245c..e8e3ae4c5 100644 --- a/doc/release/2.0.0-notes.rst +++ b/doc/release/2.0.0-notes.rst @@ -42,6 +42,7 @@ What doesn't work with NA: * UFunc.reduce of multi-dimensional arrays, with skipna=True and a ufunc that doesn't have an identity. * UFunc.accumulate, UFunc.reduceat. + * Ufuncs calls with both NA masks and a where= mask at the same time. * np.logical_and, np.logical_or, np.all, and np.any don't satisfy the rules NA | True == True and NA & False == False yet. * The reduction methods like .sum, etc. do not yet support @@ -96,6 +97,13 @@ The default casting rule for UFunc out= parameters has been changed from rule are likely bugs, so this change may expose previously undetected errors in projects that depend on NumPy. +Full-array boolean indexing used to allow boolean arrays with a size +non-broadcastable to the array size. Now it forces this to be broadcastable. +Since this affects some legacy code, this change will require discussion +during alpha or early beta testing, and a decision to either keep the +stricter behavior, or add in a hack to allow the previous behavior to +work. + The functions np.diag, np.diagonal, and .diagonal now return a view into the original array instead of making a copy. This makes these functions more consistent with NumPy's general approach of taking views -- cgit v1.2.1