BUG: Remove extra digit in binary_repr at limit by gfyoung · Pull Request #8674 · numpy/numpy (original) (raw)

So what are you saying that I have something like this?

assert_equal(np.binary_repr(-1, width=1), 1)

for width in range(1, 11): ...

I'm not sure I fully understand what you are asking by having both an "explicit" test and the for loop together (seems redundant IMO).