[issue7522] random.choice should accept a set as input

Thomas Dybdahl Ahle report at bugs.python.org
Thu May 6 13:29:59 CEST 2010


Thomas Dybdahl Ahle <lobais at gmail.com> added the comment:

Why not just add support to the set container?
As far as I know, it is a binary search tree, so supporting random picking in O(logn) should be easy.

----------
nosy: +Thomas.Dybdahl.Ahle

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7522>
_______________________________________


More information about the Python-bugs-list mailing list