[Numpy-discussion] minor improvment to ones