[issue18297] In range.sample() correct the ValueError message for negative k

2013-06-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue18297] In range.sample() correct the ValueError message for negative k

2013-06-24 Thread py.user
Changes by py.user : -- keywords: +patch Added file: http://bugs.python.org/file30697/issue18297.diff ___ Python tracker ___ ___ Pytho

[issue18297] In range.sample() correct the ValueError message for negative k

2013-06-24 Thread py.user
New submission from py.user: >>> random.sample('ABC', -1) Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.3/random.py", line 302, in sample raise ValueError("Sample larger than population") ValueError: Sample larger than population >>> -- assignee