New submission from py.user: >>> random.sample('ABC', -1) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.3/random.py", line 302, in sample raise ValueError("Sample larger than population") ValueError: Sample larger than population >>>
---------- assignee: docs@python components: Documentation, Library (Lib) messages: 191832 nosy: docs@python, py.user priority: normal severity: normal status: open title: In range.sample() correct the ValueError message for negative k type: enhancement versions: Python 3.3, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18297> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com