On 8 September 2016 at 13:23, Nick Coghlan <ncogh...@gmail.com> 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 | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/