On 8 September 2016 at 13:23, Nick Coghlan <[email protected]> wrote:

> Beyond that practical benefit, if you want
> random-sampling-with-replacement, then "map(random.choice, container)"

Oops, that was supposed to be "map(random.choice, itertools.repeat(container))".

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to