[docs] [issue15265] random.sample() docs unclear on k < len(population)
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>
More information about the docs