[issue18844] allow weights in random.choice
Westley Martínez
report at bugs.python.org
Wed Apr 6 18:11:45 EDT 2016
Westley Martínez added the comment:
I still like Serhiy's implementation more. A function that returns a list instead of the item is unnatural and doesn't fit with the rest of the module.
I think there's need to be some discussion about use cases. What do users actually want? Maybe post this on the ideas list.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18844>
_______________________________________
More information about the Python-bugs-list
mailing list