> It's a very Pythonic shorthand, though. I think it would be cleaner to
> typecheck and raise a TypeError for a 0-d array:

> >>> isinstance(np.array(1), (np.integer, Integral))
> False

If you whish.