> Is there any benefit of using np.iinfo(np.int32).max instead of 2 ** 32 (it is
> purely equivalent in terms of values)?

It's probably more robust to plateform issues. So I would say that it is
indeed better.