Open
Description
As a follow-up to #735, we should actually decide what to do in that case. I am leaning towards this scheme:
if bool larray key:
if self has a bool axis:
has_common_axes = len(key.axes & array.axes) >= 1
if has_common_axes:
raise ValueError("boolean key is ambiguous because it can target either the array or the boolean axis")
else:
# target the bool axis
<current non bool code>
else:
<current bool code>
else:
<current non bool code>