diff options
author | Raymond Hettinger <python@rcn.com> | 2010-09-06 22:54:24 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-09-06 22:54:24 (GMT) |
commit | 34e0de135df44fafad6f1f44240fdbad3b067616 (patch) | |
tree | aa2211aaef9bee21a485fd37b6abf9e9f7a7031a | |
parent | 957a47cd6f2170aa455c18a2144af57cf60188ec (diff) | |
download | cpython-34e0de135df44fafad6f1f44240fdbad3b067616.zip cpython-34e0de135df44fafad6f1f44240fdbad3b067616.tar.gz cpython-34e0de135df44fafad6f1f44240fdbad3b067616.tar.bz2 |
Remove outdated XXX comment. Mapping support was removed for 3.x.
-rw-r--r-- | Lib/random.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/random.py b/Lib/random.py index 568de88..f919718 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -292,15 +292,6 @@ class Random(_random.Random): large population: sample(xrange(10000000), 60) """ - # XXX Although the documentation says `population` is "a sequence", - # XXX attempts are made to cater to any iterable with a __len__ - # XXX method. This has had mixed success. Examples from both - # XXX sides: sets work fine, and should become officially supported; - # XXX dicts are much harder, and have failed in various subtle - # XXX ways across attempts. Support for mapping types should probably - # XXX be dropped (and users should pass mapping.keys() or .values() - # XXX explicitly). - # Sampling without replacement entails tracking either potential # selections (the pool) in a list or previous selections in a set. |