[Numpy-discussion] fix random.choice for 1.7?
Sebastian Berg
sebastian at sipsolutions.net
Tue Nov 13 04:29:57 EST 2012
On Mon, 2012-11-12 at 22:44 -0500, Alan G Isaac wrote:
> On 11/12/2012 8:18 PM, Sebastian Berg wrote:
> > I have created a pull request
>
>
> This is still a bit different than I thought you intended.
> With `size=None` we don't get an element,
> but rather a 0d array.
>
You are right, it should not be a 0d array. I overlooked that tuple()
does not give the same as None at least least for the random functions.
> I thought the idea was to return an element in this case?
>
> Alan
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list