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

2013-06-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +mark.dickinson, rhettinger

___
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



[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 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



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

2013-06-24 Thread py.user

Changes by py.user bugzilla-mail-...@yandex.ru:


--
keywords: +patch
Added file: http://bugs.python.org/file30697/issue18297.diff

___
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