[docs] [issue28475] Misleading error on random.sample when k < 0

Francisco Couzo report at bugs.python.org
Wed Oct 19 03:43:28 EDT 2016


New submission from Francisco Couzo:

Improved a bit the error message when k < 0, and also added a comment about it on the documentation and an additional test case.

----------
assignee: docs at python
components: Documentation, Library (Lib), Tests
files: random_sample.patch
keywords: patch
messages: 278964
nosy: docs at python, franciscouzo
priority: normal
severity: normal
status: open
title: Misleading error on random.sample when k < 0
Added file: http://bugs.python.org/file45141/random_sample.patch

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


More information about the docs mailing list