[New-bugs-announce] [issue18414] random.choices(seq, k)
Christian Heimes
report at bugs.python.org
Tue Jul 9 15:11:25 CEST 2013
New submission from Christian Heimes:
The random module has no method to obvious way to select k elements from a sequence without enforcing unique values in the result set. It's a rather useful feature for salts, randomly generated passwords and other applications. See #18405
The patch implements random.choices(seq, k) -> list
----------
components: Library (Lib)
files: random_choices.patch
keywords: patch
messages: 192747
nosy: christian.heimes, mark.dickinson, rhettinger
priority: normal
severity: normal
stage: patch review
status: open
title: random.choices(seq, k)
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file30877/random_choices.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18414>
_______________________________________
More information about the New-bugs-announce
mailing list