[Numpy-discussion] numpy.random.permutation bug?

Keith Goodman kwgoodman at gmail.com
Thu Jan 18 11:57:49 CST 2007


On 1/18/07, Robert Kern <robert.kern at gmail.com> wrote:
> Yes. 1.2 is not an integer. In Emanuele's example, a.sum() was an integer,
> though not an int.

Sorry, but I'm still confused. Does that mean that this is the
expected behaviour?

>> numpy.random.permutation(1)
array([0])

whereas

>> numpy.random.permutation(1.2)

should raise an error?


More information about the Numpy-discussion mailing list