[Python-checkins] r43420 - in python/branches/release24-maint/Lib: random.py test/test_random.py

Georg Brandl g.brandl at gmx.net
Wed Mar 29 11:26:53 CEST 2006


raymond.hettinger wrote:
> Author: raymond.hettinger
> Date: Wed Mar 29 10:54:54 2006
> New Revision: 43420
> 
> Modified:
>    python/branches/release24-maint/Lib/random.py
>    python/branches/release24-maint/Lib/test/test_random.py
> Log:
> SF bug #1460340:  random.sample can raise KeyError
> 
> Fix the hit and miss style of testing for sets and dicts.

Isn't this a new feature? Previously, sample() didn't accept
dicts because they aren't a sequence, which is what sample()
is documented to operate on.

Georg



More information about the Python-checkins mailing list