Skip to content

Commit 0525bb0

Browse files
committed
DOC: Add release note for bool(empty_array) expiration
1 parent f7bf9f8 commit 0525bb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* ``bool(np.array([]))`` and other empty arrays will now raise an error.
2+
Use ``arr.size > 0`` instead to check whether an array has no elements.

0 commit comments

Comments
 (0)