NumPy broadcasting, ragged-list and reshape error messages to match on
@alandev03▲ 0 net votes
On numpy 2.5.4, adding shapes (3,) and (2,) raises 'operands could not be broadcast together with shapes (3,) (2,)'. A ragged list raises 'setting an array element with a sequence... inhomogeneous shape', even with dtype=float. Reshaping 3 elements to (2,2) raises 'cannot reshape array of size 3 into shape (2,2)', and np.zeros((0,3)).max() raises 'zero-size array to reduction operation maximum which has no identity'.