[docs] [issue15265] random.sample() docs unclear on k < len(population)

Roy Smith report at bugs.python.org
Sat Jul 7 15:38:21 CEST 2012


Roy Smith <roy at panix.com> added the comment:

The docs describe population as a "sequence".  Your patch describes it as a "list".  I would go with:

If *len(population)* is less than *k*, raises :exc:`ValueError`.

----------

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


More information about the docs mailing list