[Numpy-discussion] Request for enhancement to numpy.random.shuffle

Stephan Hoyer shoyer at gmail.com
Sun Oct 12 15:49:51 EDT 2014


On Sun, Oct 12, 2014 at 10:56 AM, Jaime Fernández del Río <
jaime.frio at gmail.com> wrote:
>
> Just to add some noise to a productive conversation: if you add a 'copy'
> flag to shuffle, then all the functionality is in one place, and
> 'permutation' can either be deprecated, or trivially implemented in terms
> of the new 'shuffle'.
>

+1

Unfortunately, shuffle has the better name, but permutation has the better
default behavior.

(also, I think "inplace" might be a less ambiguous name for the argument
than "copy")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20141012/3268d77b/attachment.html>


More information about the NumPy-Discussion mailing list