[docs] [issue18297] In range.sample() correct the ValueError message for negative k
py.user
report at bugs.python.org
Tue Jun 25 07:03:53 CEST 2013
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 at python
components: Documentation, Library (Lib)
messages: 191832
nosy: docs at 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 <report at bugs.python.org>
<http://bugs.python.org/issue18297>
_______________________________________
More information about the docs
mailing list